Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenkernel / intern / blendfile.c
index 111dc98476fbcaac27cf63f30c0ca2413078a129..53f2462ee987f75c6fbbd0eb549379e301c6b6a3 100644 (file)
@@ -430,9 +430,9 @@ bool BKE_blendfile_read_from_memfile(
        if (bfd) {
                /* remove the unused screens and wm */
                while (bfd->main->wm.first)
-                       BKE_libblock_free_ex(bfd->main, bfd->main->wm.first, true, true);
+                       BKE_libblock_free(bfd->main, bfd->main->wm.first);
                while (bfd->main->screen.first)
-                       BKE_libblock_free_ex(bfd->main, bfd->main->screen.first, true, true);
+                       BKE_libblock_free(bfd->main, bfd->main->screen.first);
 
                setup_app_data(C, bfd, "<memory1>", reports);
        }