mirror of
https://github.com/jenshemprich/MacGLide.git
synced 2024-06-03 01:29:32 +00:00
Fixed possible crash on exit
This commit is contained in:
parent
3857e6cc4e
commit
249a096941
|
@ -544,9 +544,12 @@ grSstWinClose( void )
|
||||||
RenderFree();
|
RenderFree();
|
||||||
FinaliseOpenGLWindow();
|
FinaliseOpenGLWindow();
|
||||||
|
|
||||||
FreeFrameBuffer(Glide.FrameBuffer.Address);
|
if (Glide.FrameBuffer.Address)
|
||||||
Glide.FrameBuffer.Address = NULL;
|
{
|
||||||
Glide.TempBuffer.Address = NULL;
|
FreeFrameBuffer(Glide.FrameBuffer.Address);
|
||||||
|
Glide.FrameBuffer.Address = NULL;
|
||||||
|
Glide.TempBuffer.Address = NULL;
|
||||||
|
}
|
||||||
// Freeing the readbuffer is be deferred until
|
// Freeing the readbuffer is be deferred until
|
||||||
// reopening the window or unloading the library
|
// reopening the window or unloading the library
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user