[Scummvm-cvs-logs] SF.net SVN: scummvm:[55878] scummvm/trunk/engines/toon/toon.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Fri Feb 11 06:13:38 CET 2011
Revision: 55878
http://scummvm.svn.sourceforge.net/scummvm/?rev=55878&view=rev
Author: eriktorbjorn
Date: 2011-02-11 05:13:37 +0000 (Fri, 11 Feb 2011)
Log Message:
-----------
TOON: Fix memory leak
PAK files were not being unloaded because closePackage() was being
called with a slightly different file name than than openPackage().
Modified Paths:
--------------
scummvm/trunk/engines/toon/toon.cpp
Modified: scummvm/trunk/engines/toon/toon.cpp
===================================================================
--- scummvm/trunk/engines/toon/toon.cpp 2011-02-11 04:23:38 UTC (rev 55877)
+++ scummvm/trunk/engines/toon/toon.cpp 2011-02-11 05:13:37 UTC (rev 55878)
@@ -1722,7 +1722,7 @@
_currentTextLineCharacterId = 0;
char temp[256];
- strcpy(temp, createRoomFilename(Common::String::format("%s.pak", _gameState->_locations[_gameState->_currentScene]._name).c_str()).c_str());
+ strcpy(temp, createRoomFilename(Common::String::format("%s.PAK", _gameState->_locations[_gameState->_currentScene]._name).c_str()).c_str());
resources()->closePackage(temp);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list