diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-06-15 17:20:51 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-06-15 17:20:51 +0300 |
commit | 3d03616772b760f968bd4d4791c6073817c10586 (patch) | |
tree | 50dc2f573b2bc37f68af375e8c8fb2bab2c17908 /source/blender | |
parent | 880e96dd667aedea17353803bcc5721f3cc34d50 (diff) |
Cleanup: do not use `BKE_libblock_free_ex()` unless needed!
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/blendfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c index a521d671ea4..05ea7983b8e 100644 --- a/source/blender/blenkernel/intern/blendfile.c +++ b/source/blender/blenkernel/intern/blendfile.c @@ -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); } |