sdl2_frt/src/video/windows
Sam Lantinga d44f392265 Fixed bug 2629 - Mac: crash when calling SDL_DestroyWindow with an active OpenGL context
Alex Szpakowski

Since this commit https://hg.libsdl.org/SDL/rev/59b543340d63 , calling SDL_DestroyWindow will crash the program if the window has an active OpenGL context.

This is because the Cocoa_DestroyWindow code sets the window's driverdata to NULL and then calls [context setWindow:NULL], which tries to access the window's driverdata, resulting in a null pointer dereference.

I have attached a patch which fixes the issue by moving the line which sets the driverdata to NULL to after the lines which call functions that use the driverdata pointer.
2014-07-07 10:33:32 -07:00
..
SDL_msctf.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_vkeys.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsclipboard.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsclipboard.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsevents.c Fixed mingw64 build and warnings 2014-07-07 10:26:28 -07:00
SDL_windowsevents.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsframebuffer.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsframebuffer.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowskeyboard.c Fixed mingw64 build and warnings 2014-07-07 10:26:28 -07:00
SDL_windowskeyboard.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsmessagebox.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsmessagebox.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsmodes.c Fullscreen to windowed mode switch 2014-05-31 12:21:55 -07:00
SDL_windowsmodes.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsmouse.c Fixed mingw64 build and warnings 2014-07-07 10:26:28 -07:00
SDL_windowsmouse.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsopengl.c Don't crash in WIN_GL_InitExtensions() if the OpenGL library couldn't be loaded 2014-04-23 13:47:57 -07:00
SDL_windowsopengl.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsopengles.c Fixed bug 2579 - SDL fails to compile on Windows when only EGL+OpenGL ES defined 2014-06-22 09:48:46 -07:00
SDL_windowsopengles.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsshape.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsshape.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_windowsvideo.c Merged Ryan's SDL-gui-backend branch. 2014-06-25 17:06:12 -04:00
SDL_windowsvideo.h Added a hint to disable windows message processing in SDL_PumpEvents() 2014-06-04 10:52:34 -07:00
SDL_windowswindow.c Fixed bug 2629 - Mac: crash when calling SDL_DestroyWindow with an active OpenGL context 2014-07-07 10:33:32 -07:00
SDL_windowswindow.h Merged Ryan's SDL-gui-backend branch. 2014-06-25 17:06:12 -04:00
wmmsg.h Added names for some theme related windows messages 2014-06-23 10:09:13 -07:00