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