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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user