mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-29 12:57:25 +02:00
video: NULL-check display in SDL_DestroyWindow
(cherry picked from commit 039a60c527)
This commit is contained in:
committed by
Ryan C. Gordon
parent
9e347006d5
commit
c4d6a01383
@@ -3356,7 +3356,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