diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-19 03:43:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-19 03:43:37 +0300 |
commit | ea81c58429ecd51752e2abb7d756ef1d09514b84 (patch) | |
tree | c04bb758aa53b9f7a470a61b2e4e857a55fbc22b /source | |
parent | dfb8b21340e63334c0ec67333bccc93166e303d1 (diff) |
2.5: fix small memory leak when closing window with X-button rather than Ctrl+Q.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 1 |
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); |