Cleanup: do not use `BKE_libblock_free_ex()` unless needed!
authorBastien Montagne <montagne29@wanadoo.fr>
Thu, 15 Jun 2017 14:20:51 +0000 (16:20 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Thu, 15 Jun 2017 14:20:51 +0000 (16:20 +0200)
source/blender/blenkernel/intern/blendfile.c

index a521d671ea424dc8dea7eeacd37f468f53f08403..05ea7983b8e6f69f5f017623a72bebbcbb720b73 100644 (file)
@@ -413,9 +413,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);
        }