Fix state losses for recursive outliner trees (e.g. datablocks editor)
[blender-staging.git] / source / blender / editors / space_outliner / space_outliner.c
index 874852ee320749b4e5e66c963c5e6381b0a11761..d695ffa46d58573f89a30c74bd3ad6d72f9d60e6 100644 (file)
@@ -43,6 +43,7 @@
 #include "BKE_context.h"
 #include "BKE_screen.h"
 #include "BKE_scene.h"
+#include "BKE_treehash.h"
 
 #include "ED_space_api.h"
 #include "ED_screen.h"
@@ -435,7 +436,7 @@ static void outliner_free(SpaceLink *sl)
                BLI_mempool_destroy(soutliner->treestore);
        }
        if (soutliner->treehash) {
-               BLI_ghash_free(soutliner->treehash, NULL, NULL);
+               BKE_treehash_free(soutliner->treehash);
        }
 }