From 91ce0e989834d6305fd43abc79aba9e8a4a45cda Mon Sep 17 00:00:00 2001 From: avolkov Date: Sun, 12 Feb 2012 20:01:20 +0000 Subject: [PATCH] Remove dated SCREEN_DRAWABLE logic to allow for Screen FRAME cleanup; bug #1149 git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3766 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/libs/graphics/gfxload.c | 10 +--------- sc2/src/uqm/cleanup.c | 2 ++ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/sc2/src/libs/graphics/gfxload.c b/sc2/src/libs/graphics/gfxload.c index a18b09697..969a9102d 100644 --- a/sc2/src/libs/graphics/gfxload.c +++ b/sc2/src/libs/graphics/gfxload.c @@ -321,15 +321,7 @@ _ReleaseCelData (void *handle) return (FALSE); cel_ct = DrawablePtr->MaxIndex + 1; - - if (DrawablePtr->Frame) - { - FramePtr = DrawablePtr->Frame; - if (FramePtr->Type == SCREEN_DRAWABLE) - { - FramePtr = NULL; - } - } + FramePtr = DrawablePtr->Frame; HFree (handle); if (FramePtr) diff --git a/sc2/src/uqm/cleanup.c b/sc2/src/uqm/cleanup.c index 75be8e523..a6e437728 100644 --- a/sc2/src/uqm/cleanup.c +++ b/sc2/src/uqm/cleanup.c @@ -39,7 +39,9 @@ FreeKernel (void) UninitResourceSystem (); DestroyDrawable (ReleaseDrawable (Screen)); + Screen = 0; DestroyContext (ScreenContext); + ScreenContext = 0; UninitVideoPlayer (); UninitSound ();