diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-14 12:16:34 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-14 12:16:34 +0300 |
commit | 20e5052a72215fa432f7b74cd4b77a5fd8c8e7f1 (patch) | |
tree | 08ae116a26fd4cf93b4188c723e66b2497760571 /source/blender/windowmanager/intern/wm.c | |
parent | 97f9f90986a045953c4f466bda2f76f52b41da35 (diff) |
Remove unused bmain argument from BKE_libblock_free_data
Diffstat (limited to 'source/blender/windowmanager/intern/wm.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index d0522fdd7d4..67e961b9cd0 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -483,13 +483,12 @@ 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, true); + BKE_libblock_free_data(&wm->id, true); MEM_freeN(wm); } } |