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);
|
return (FALSE);
|
||||||
|
|
||||||
cel_ct = DrawablePtr->MaxIndex + 1;
|
cel_ct = DrawablePtr->MaxIndex + 1;
|
||||||
|
FramePtr = DrawablePtr->Frame;
|
||||||
if (DrawablePtr->Frame)
|
|
||||||
{
|
|
||||||
FramePtr = DrawablePtr->Frame;
|
|
||||||
if (FramePtr->Type == SCREEN_DRAWABLE)
|
|
||||||
{
|
|
||||||
FramePtr = NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HFree (handle);
|
HFree (handle);
|
||||||
if (FramePtr)
|
if (FramePtr)
|
||||||
|
|||||||
@@ -39,7 +39,9 @@ FreeKernel (void)
|
|||||||
UninitResourceSystem ();
|
UninitResourceSystem ();
|
||||||
|
|
||||||
DestroyDrawable (ReleaseDrawable (Screen));
|
DestroyDrawable (ReleaseDrawable (Screen));
|
||||||
|
Screen = 0;
|
||||||
DestroyContext (ScreenContext);
|
DestroyContext (ScreenContext);
|
||||||
|
ScreenContext = 0;
|
||||||
|
|
||||||
UninitVideoPlayer ();
|
UninitVideoPlayer ();
|
||||||
UninitSound ();
|
UninitSound ();
|
||||||
|
|||||||
Reference in New Issue
Block a user