From: <Mee...@us...> - 2011-12-28 18:00:20
|
Revision: 3712 http://sc2.svn.sourceforge.net/sc2/?rev=3712&view=rev Author: Meep-Eep Date: 2011-12-28 18:00:11 +0000 (Wed, 28 Dec 2011) Log Message: ----------- Fix memory leak, from Louis Delacroix. Modified Paths: -------------- trunk/sc2/src/libs/graphics/context.c Modified: trunk/sc2/src/libs/graphics/context.c =================================================================== --- trunk/sc2/src/libs/graphics/context.c 2011-12-28 17:51:58 UTC (rev 3711) +++ trunk/sc2/src/libs/graphics/context.c 2011-12-28 18:00:11 UTC (rev 3712) @@ -139,6 +139,10 @@ } #endif /* DEBUG */ + TFB_Image *img = ContextRef->FontBacking; + if (img) + TFB_DrawImage_Delete (img); + FreeContext (ContextRef); return TRUE; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |