Fix #28467: Crash while deleting objects in outliner too fast
[blender-staging.git] / source / blender / editors / space_outliner / outliner_tree.c
index 0b07c824f3e4e39e5f1dc16b8b0cc4da5149fff4..8904dcc360fc53e7b5da808879e2f8347e24bcc5 100644 (file)
@@ -222,6 +222,12 @@ void outliner_free_tree(ListBase *lb)
        }
 }
 
+void outliner_cleanup_tree(SpaceOops *soops)
+{
+       outliner_free_tree(&soops->tree);
+       outliner_storage_cleanup(soops);
+}
+
 /* Find ith item from the treestore */
 static TreeElement *outliner_find_tree_element(ListBase *lb, int store_index)
 {