diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-09-15 10:43:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-09-15 12:31:17 +0300 |
commit | 841202fd0689f7ce6e562a701029b2a9efdda33b (patch) | |
tree | 0da113860ed7f267072c9c6d3666c2989c0f2d15 /source/blender/windowmanager/intern/wm.c | |
parent | 07a7d64c06860204a02db6cd2897064cd7a07363 (diff) |
Fix wm leak loading factory-startup
Diffstat (limited to 'source/blender/windowmanager/intern/wm.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index c8ff6dac754..fe92d80c1bd 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -467,11 +467,13 @@ void wm_close_and_free(bContext *C, wmWindowManager *wm) void wm_close_and_free_all(bContext *C, ListBase *wmlist) { + Main *bmain = CTX_data_main(C); wmWindowManager *wm; while ((wm = wmlist->first)) { wm_close_and_free(C, wm); BLI_remlink(wmlist, wm); + BKE_libblock_free_data(bmain, &wm->id); MEM_freeN(wm); } } |