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:
@@ -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)
|
||||
|
||||
@@ -39,7 +39,9 @@ FreeKernel (void)
|
||||
UninitResourceSystem ();
|
||||
|
||||
DestroyDrawable (ReleaseDrawable (Screen));
|
||||
Screen = 0;
|
||||
DestroyContext (ScreenContext);
|
||||
ScreenContext = 0;
|
||||
|
||||
UninitVideoPlayer ();
|
||||
UninitSound ();
|
||||
|
||||
Reference in New Issue
Block a user