Fix memory leak, from Louis Delacroix.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3712 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -139,6 +139,10 @@ DestroyContext (CONTEXT ContextRef)
|
||||
}
|
||||
#endif /* DEBUG */
|
||||
|
||||
TFB_Image *img = ContextRef->FontBacking;
|
||||
if (img)
|
||||
TFB_DrawImage_Delete (img);
|
||||
|
||||
FreeContext (ContextRef);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user