mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-08 07:31:03 +00:00
Clean up window properties when the window is destroyed
This commit is contained in:
parent
8668943746
commit
a02afbaea5
1 changed files with 2 additions and 0 deletions
|
|
@ -3533,6 +3533,8 @@ void SDL_DestroyWindow(SDL_Window *window)
|
|||
|
||||
SDL_SendWindowEvent(window, SDL_EVENT_WINDOW_DESTROYED, 0, 0);
|
||||
|
||||
SDL_DestroyProperties(window->props);
|
||||
|
||||
/* If this is a child window, unlink it from its siblings */
|
||||
if (window->parent) {
|
||||
if (window->next_sibling) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue