Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-12-19 03:43:37 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-12-19 03:43:37 +0300
commitea81c58429ecd51752e2abb7d756ef1d09514b84 (patch)
treec04bb758aa53b9f7a470a61b2e4e857a55fbc22b /source/blender
parentdfb8b21340e63334c0ec67333bccc93166e303d1 (diff)
2.5: fix small memory leak when closing window with X-button rather than Ctrl+Q.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index f3c5f626f48..0dca5804f26 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -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);