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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-06-14 12:16:34 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-06-14 12:16:34 +0300
commit20e5052a72215fa432f7b74cd4b77a5fd8c8e7f1 (patch)
tree08ae116a26fd4cf93b4188c723e66b2497760571 /source/blender/windowmanager
parent97f9f90986a045953c4f466bda2f76f52b41da35 (diff)
Remove unused bmain argument from BKE_libblock_free_data
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm.c5
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);
}
}