writefile: reuse SDNA between writes
[blender.git] / source / blender / windowmanager / intern / wm_init_exit.c
index 9d1083bbf639da520b2d52494f1bb509505d4ce3..3022d8654609670a2fafbc55cf27e00f9989858b 100644 (file)
@@ -40,6 +40,7 @@
 
 #include "MEM_guardedalloc.h"
 
 
 #include "MEM_guardedalloc.h"
 
+#include "DNA_genfile.h"
 #include "DNA_scene_types.h"
 #include "DNA_userdef_types.h"
 #include "DNA_windowmanager_types.h"
 #include "DNA_scene_types.h"
 #include "DNA_userdef_types.h"
 #include "DNA_windowmanager_types.h"
@@ -584,6 +585,8 @@ void WM_exit_ext(bContext *C, const bool do_python)
        
        GHOST_DisposeSystemPaths();
 
        
        GHOST_DisposeSystemPaths();
 
+       DNA_sdna_current_free();
+
        BLI_threadapi_exit();
 
        BKE_blender_atexit();
        BLI_threadapi_exit();
 
        BKE_blender_atexit();