From: <ke...@us...> - 2007-11-08 15:24:57
|
Revision: 215 http://planeshift.svn.sourceforge.net/planeshift/?rev=215&view=rev Author: kemedes Date: 2007-11-08 07:24:14 -0800 (Thu, 08 Nov 2007) Log Message: ----------- - Fixed #2573 - Leak in CachaManager. Modified Paths: -------------- trunk/docs/history.txt trunk/src/server/cachemanager.cpp Modified: trunk/docs/history.txt =================================================================== --- trunk/docs/history.txt 2007-11-07 19:40:28 UTC (rev 214) +++ trunk/docs/history.txt 2007-11-08 15:24:14 UTC (rev 215) @@ -1,3 +1,6 @@ +*** 2007-11-08 by Sasha Levin +- Fixed #2573 - Leak in CachaManager. + *** 2007-11-07 by Michael Gist - Deprecation fixes. - Removed some hindering checks from GM /divorce command. Modified: trunk/src/server/cachemanager.cpp =================================================================== --- trunk/src/server/cachemanager.cpp 2007-11-07 19:40:28 UTC (rev 214) +++ trunk/src/server/cachemanager.cpp 2007-11-08 15:24:14 UTC (rev 215) @@ -189,18 +189,9 @@ void CacheManager::UnloadAll() { delete commandManager; + quests_by_id.DeleteAll(); { - csHash<psQuest *>::GlobalIterator it (quests_by_id.GetIterator ()); - quests_by_id.Empty(); - while (it.HasNext ()) - { - psQuest* quest = it.Next (); - delete quest; - } - } - - { csHash<csPDelArray<CombinationConstruction>*,uint32>::GlobalIterator it(tradeCombinations_IDHash.GetIterator ()); while (it.HasNext ()) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |