Fix double free in melee screen. Closes #133

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@711 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
ghaushe
2003-02-07 14:31:13 +00:00
parent 68b8241b97
commit 32b2a6d0d4
+2 -1
View File
@@ -1444,7 +1444,8 @@ LoadMeleeInfo (PMELEE_STATE pMS)
// reverting to original behavior
OldContext = SetContext (OffScreenContext);
DestroyDrawable (ReleaseDrawable (PickMeleeFrame));
if (PickMeleeFrame)
DestroyDrawable (ReleaseDrawable (PickMeleeFrame));
PickMeleeFrame = CaptureDrawable (CreateDrawable (
WANT_PIXMAP, MELEE_WIDTH, MELEE_HEIGHT, 2
));