mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
video: NULL-check display in SDL_DestroyWindow
This commit is contained in:
parent
d07d39b0da
commit
039a60c527
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue