mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-28 20:37:24 +02:00
video: NULL-check display in SDL_DestroyWindow
This commit is contained in:
committed by
Ryan C. Gordon
parent
d07d39b0da
commit
039a60c527
@@ -3360,7 +3360,7 @@ void SDL_DestroyWindow(SDL_Window *window)
|
||||
}
|
||||
|
||||
display = SDL_GetDisplayForWindow(window);
|
||||
if (display->fullscreen_window == window) {
|
||||
if (display && display->fullscreen_window == window) {
|
||||
display->fullscreen_window = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user