- Changed: When the screen is being deleted the 'screen' variable should be
set to NULL before performing the delete. Otherwise, in some abnormal situations, it could happen that the destroyed screen object is still being accessed. - Fixed: V_Shutdown didn't set OF_YesReallyDelete before deleting screen. SVN r870 (trunk)
This commit is contained in:
parent
868782a843
commit
5e6f709dbf
4 changed files with 21 additions and 9 deletions
|
|
@ -62,9 +62,10 @@ void I_ShutdownGraphics ()
|
|||
{
|
||||
if (screen)
|
||||
{
|
||||
screen->ObjectFlags |= OF_YesReallyDelete;
|
||||
delete screen;
|
||||
DFrameBuffer *s = screen;
|
||||
screen = NULL;
|
||||
s->ObjectFlags |= OF_YesReallyDelete;
|
||||
delete s;
|
||||
}
|
||||
if (Video)
|
||||
delete Video, Video = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue