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