Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm.c
| Show First 20 Lines • Show All 622 Lines • ▼ Show 20 Lines | |||||
| void wm_close_and_free_all(bContext *C, ListBase *wmlist) | void wm_close_and_free_all(bContext *C, ListBase *wmlist) | ||||
| { | { | ||||
| wmWindowManager *wm; | wmWindowManager *wm; | ||||
| while ((wm = wmlist->first)) { | while ((wm = wmlist->first)) { | ||||
| wm_close_and_free(C, wm); | wm_close_and_free(C, wm); | ||||
| BLI_remlink(wmlist, wm); | BLI_remlink(wmlist, wm); | ||||
| BKE_libblock_free_data(&wm->id, true); | BKE_libblock_free_data(&wm->id, true); | ||||
| BKE_libblock_free_data_py(&wm->id); | |||||
| MEM_freeN(wm); | MEM_freeN(wm); | ||||
| } | } | ||||
| } | } | ||||
| void WM_main(bContext *C) | void WM_main(bContext *C) | ||||
| { | { | ||||
| /* Single refresh before handling events. | /* Single refresh before handling events. | ||||
| * This ensures we don't run operators before the depsgraph has been evaluated. */ | * This ensures we don't run operators before the depsgraph has been evaluated. */ | ||||
| Show All 17 Lines | |||||