[Scummvm-cvs-logs] SF.net SVN: scummvm:[39936] scummvm/trunk/engines/saga/script.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sat Apr 11 16:44:03 CEST 2009
Revision: 39936
http://scummvm.svn.sourceforge.net/scummvm/?rev=39936&view=rev
Author: thebluegr
Date: 2009-04-11 14:44:03 +0000 (Sat, 11 Apr 2009)
Log Message:
-----------
Plugged another memory leak introduced with rev #39934
Revision Links:
--------------
http://scummvm.svn.sourceforge.net/scummvm/?rev=39934&view=rev
Modified Paths:
--------------
scummvm/trunk/engines/saga/script.cpp
Modified: scummvm/trunk/engines/saga/script.cpp
===================================================================
--- scummvm/trunk/engines/saga/script.cpp 2009-04-11 12:55:22 UTC (rev 39935)
+++ scummvm/trunk/engines/saga/script.cpp 2009-04-11 14:44:03 UTC (rev 39936)
@@ -220,7 +220,11 @@
// Shut down script module gracefully; free all allocated module resources
Script::~Script() {
-
+ ScriptThreadList::iterator threadIterator = _threadList.begin();
+ while (threadIterator != _threadList.end()) {
+ delete *threadIterator;
+ threadIterator = _threadList.erase(threadIterator);
+ }
}
// Script opcodes
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