From: <ma...@us...> - 2012-04-03 18:24:37
|
Revision: 8148 http://planeshift.svn.sourceforge.net/planeshift/?rev=8148&view=rev Author: magodra Date: 2012-04-03 18:24:26 +0000 (Tue, 03 Apr 2012) Log Message: ----------- - Fixed a missing destructor. Modified Paths: -------------- trunk/src/npcclient/recipe.cpp trunk/src/npcclient/recipe.h Modified: trunk/src/npcclient/recipe.cpp =================================================================== --- trunk/src/npcclient/recipe.cpp 2012-04-03 09:38:44 UTC (rev 8147) +++ trunk/src/npcclient/recipe.cpp 2012-04-03 18:24:26 UTC (rev 8148) @@ -260,6 +260,15 @@ eventmanager = eventManager; } +RecipeManager::~RecipeManager() +{ + while (!recipes.IsEmpty()) + { + Recipe* recipe = recipes.Pop(); + delete recipe; + } +} + csString RecipeManager::Preparse(csString function, Tribe* tribe) { csString container; Modified: trunk/src/npcclient/recipe.h =================================================================== --- trunk/src/npcclient/recipe.h 2012-04-03 09:38:44 UTC (rev 8147) +++ trunk/src/npcclient/recipe.h 2012-04-03 18:24:26 UTC (rev 8148) @@ -156,7 +156,7 @@ RecipeManager(psNPCClient* NPCClient, EventManager* eventManager); /** Destruct the Recipe Manager */ - virtual ~RecipeManager() { }; + virtual ~RecipeManager(); /** Preparser * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |