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:
Meep-Eep
2011-12-28 18:00:11 +00:00
parent dc1dfcba27
commit ef086c3fb4
+4
View File
@@ -139,6 +139,10 @@ DestroyContext (CONTEXT ContextRef)
} }
#endif /* DEBUG */ #endif /* DEBUG */
TFB_Image *img = ContextRef->FontBacking;
if (img)
TFB_DrawImage_Delete (img);
FreeContext (ContextRef); FreeContext (ContextRef);
return TRUE; return TRUE;
} }