mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-21 17:21:44 +00:00
Safety fix: clear "_this->wakeup_window" when destroying the window
This commit is contained in:
@@ -3462,6 +3462,10 @@ void SDL_DestroyWindow(SDL_Window *window)
|
|||||||
_this->current_glwin = NULL;
|
_this->current_glwin = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_this->wakeup_window == window) {
|
||||||
|
_this->wakeup_window = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Now invalidate magic */
|
/* Now invalidate magic */
|
||||||
window->magic = NULL;
|
window->magic = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user