diff options
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 2f87e5789fe..957ec7d800d 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -562,6 +562,13 @@ void WM_exit_ex(bContext *C, const bool do_python) BKE_blender_free(); /* blender.c, does entire library and spacetypes */ // BKE_material_copybuf_free(); + + /* Free the GPU subdivision data after the database to ensure that subdivision structs used by + * the modifiers were garbage collected. */ + if (opengl_is_init) { + DRW_subdiv_free(); + } + ANIM_fcurves_copybuf_free(); ANIM_drivers_copybuf_free(); ANIM_driver_vars_copybuf_free(); |