From: <Mee...@us...> - 2011-12-28 17:52:05
|
Revision: 3711 http://sc2.svn.sourceforge.net/sc2/?rev=3711&view=rev Author: Meep-Eep Date: 2011-12-28 17:51:58 +0000 (Wed, 28 Dec 2011) Log Message: ----------- Fix a few memory leaks, from Louis Delacroix. Modified Paths: -------------- trunk/sc2/ChangeLog trunk/sc2/src/uqm/flash.c trunk/sc2/src/uqm.c Modified: trunk/sc2/ChangeLog =================================================================== --- trunk/sc2/ChangeLog 2011-12-26 01:35:07 UTC (rev 3710) +++ trunk/sc2/ChangeLog 2011-12-28 17:51:58 UTC (rev 3711) @@ -1,5 +1,5 @@ Changes towards version 0.8: -- Fix memory leak in mkdirhier(), from Loius Delacroix +- Fix several memory leaks, from Loius Delacroix - Some cleanups / warnings fixes, from Louis Delacroix - Added a free callback function for the values of the key-value pairs in hash tables - SvdB Modified: trunk/sc2/src/uqm/flash.c =================================================================== --- trunk/sc2/src/uqm/flash.c 2011-12-26 01:35:07 UTC (rev 3710) +++ trunk/sc2/src/uqm/flash.c 2011-12-28 17:51:58 UTC (rev 3711) @@ -211,6 +211,7 @@ Flash_drawFrame (context, context->original); Flash_clearCache (context); + HFree (context->cache); DestroyDrawable (ReleaseDrawable (context->original)); } Modified: trunk/sc2/src/uqm.c =================================================================== --- trunk/sc2/src/uqm.c 2011-12-26 01:35:07 UTC (rev 3710) +++ trunk/sc2/src/uqm.c 2011-12-28 17:51:58 UTC (rev 3711) @@ -487,6 +487,8 @@ UnInitThreadSystem (); mem_uninit (); } + + HFree (options.addons); return EXIT_SUCCESS; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |