diff options
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 0515cd01f6f..fba9b4824b4 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -168,6 +168,8 @@ void WM_init(bContext *C, int argc, const char **argv) /* Enforce loading the UI for the initial homefile */ G.fileflags &= ~G_FILE_NO_UI; + ED_spacedropwidgets_init(); + /* get the default database, plus a wm */ wm_homefile_read(C, NULL, G.factory_startup, NULL); @@ -496,6 +498,9 @@ void WM_exit_ext(bContext *C, const bool do_python) ED_clipboard_posebuf_free(); BKE_node_clipboard_clear(); + /* widgetmaps after freeing blender, so no deleted data get accessed during cleaning up of areas */ + WM_widgetmaptypes_free(); + BLF_exit(); #ifdef WITH_INTERNATIONAL |