2.5: fix small memory leak when closing window with X-button rather than Ctrl+Q.
[blender-staging.git] / source / blender / windowmanager / intern / wm_window.c
index f3c5f626f48d738ea3e3dacff2f46e0e943df4e7..0dca5804f2609faa8a7c3776d1a1f7dbed22f4ba 100644 (file)
@@ -157,6 +157,7 @@ static void wm_window_close(bContext *C, wmWindow *win)
        wmWindowManager *wm= CTX_wm_manager(C);
        BLI_remlink(&wm->windows, win);
        
+       WM_event_remove_handlers(C, &win->handlers);
        ED_screen_exit(C, win, win->screen);
        wm_window_free(C, win);