From: <av...@us...> - 2012-01-13 17:16:33
|
Revision: 3744 http://sc2.svn.sourceforge.net/sc2/?rev=3744&view=rev Author: avolkov Date: 2012-01-13 17:16:23 +0000 (Fri, 13 Jan 2012) Log Message: ----------- Fix leaked TFB_Image.FilledImg Modified Paths: -------------- trunk/sc2/src/libs/graphics/tfb_draw.c Modified: trunk/sc2/src/libs/graphics/tfb_draw.c =================================================================== --- trunk/sc2/src/libs/graphics/tfb_draw.c 2012-01-10 07:20:33 UTC (rev 3743) +++ trunk/sc2/src/libs/graphics/tfb_draw.c 2012-01-13 17:16:23 UTC (rev 3744) @@ -415,10 +415,18 @@ TFB_DrawCanvas_Delete (image->NormalImg); - if (image->ScaledImg) { + if (image->ScaledImg) + { TFB_DrawCanvas_Delete (image->ScaledImg); + image->ScaledImg = 0; } + if (image->FilledImg) + { + TFB_DrawCanvas_Delete (image->FilledImg); + image->FilledImg = 0; + } + UnlockMutex (image->mutex); DestroyMutex (image->mutex); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |