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
This commit is contained in:
avolkov
2012-02-12 20:01:20 +00:00
parent 2cf7861674
commit 91ce0e9898
2 changed files with 3 additions and 9 deletions
-8
View File
@@ -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;
}
}
HFree (handle);
if (FramePtr)
+2
View File
@@ -39,7 +39,9 @@ FreeKernel (void)
UninitResourceSystem ();
DestroyDrawable (ReleaseDrawable (Screen));
Screen = 0;
DestroyContext (ScreenContext);
ScreenContext = 0;
UninitVideoPlayer ();
UninitSound ();