Fix leaked TFB_Image.FilledImg

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3744 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2012-01-13 17:16:23 +00:00
parent c16883fce4
commit 65f46689f3
+9 -1
View File
@@ -415,8 +415,16 @@ TFB_DrawImage_Delete (TFB_Image *image)
TFB_DrawCanvas_Delete (image->NormalImg); TFB_DrawCanvas_Delete (image->NormalImg);
if (image->ScaledImg) { if (image->ScaledImg)
{
TFB_DrawCanvas_Delete (image->ScaledImg); TFB_DrawCanvas_Delete (image->ScaledImg);
image->ScaledImg = 0;
}
if (image->FilledImg)
{
TFB_DrawCanvas_Delete (image->FilledImg);
image->FilledImg = 0;
} }
UnlockMutex (image->mutex); UnlockMutex (image->mutex);