瀏覽代碼

Clean up window properties when the window is destroyed

Sam Lantinga 2 年之前
父節點
當前提交
a02afbaea5
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/video/SDL_video.c

+ 2 - 0
src/video/SDL_video.c

@@ -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) {