[Scummvm-cvs-logs] SF.net SVN: scummvm:[43340] scummvm/trunk/engines/kyra/staticres.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Thu Aug 13 02:21:43 CEST 2009
Revision: 43340
http://scummvm.svn.sourceforge.net/scummvm/?rev=43340&view=rev
Author: lordhoto
Date: 2009-08-13 00:21:42 +0000 (Thu, 13 Aug 2009)
Log Message:
-----------
Fix serious bug in StaticResource::unloadId.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/staticres.cpp
Modified: scummvm/trunk/engines/kyra/staticres.cpp
===================================================================
--- scummvm/trunk/engines/kyra/staticres.cpp 2009-08-13 00:20:37 UTC (rev 43339)
+++ scummvm/trunk/engines/kyra/staticres.cpp 2009-08-13 00:21:42 UTC (rev 43340)
@@ -589,6 +589,7 @@
if (pos->id == id || id == -1) {
const FileType *filetype = getFiletype(pos->type);
(this->*(filetype->free))(pos->data, pos->size);
+ pos = _resList.erase(pos);
if (id != -1)
break;
}
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