Alembic: fixed memory leak
authorSybren A. Stüvel <sybren@stuvel.eu>
Fri, 21 Apr 2017 10:28:49 +0000 (12:28 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Fri, 21 Apr 2017 12:11:49 +0000 (14:11 +0200)
source/blender/editors/io/io_cache.c

index ebe8898571d255fd4edf83e3da29ec0ec12c40b1..af6f55d7a643b2de593796de22da793a7fb7da58 100644 (file)
@@ -143,7 +143,7 @@ static int cachefile_reload_exec(bContext *C, wmOperator *op)
 
        Main *bmain = CTX_data_main(C);
 
-       BLI_listbase_clear(&cache_file->object_paths);
+       BLI_freelistN(&cache_file->object_paths);
        BKE_cachefile_reload(bmain, cache_file);
 
        return OPERATOR_FINISHED;