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
(cherry picked from commit 039a60c527)
This commit is contained in:
parent
9e347006d5
commit
c4d6a01383
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue