mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-03-23 21:55:12 +00:00
Safety fix: clear "_this->wakeup_window" when destroying the window
(cherry picked from commit c838ccf0e3a330ebbcf433698b8f5370c6fa80d6)
This commit is contained in:
parent
6574e5eb57
commit
16c9bad786
|
@ -3276,6 +3276,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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue