Cleanup: rename BKE_libblock_free_us to BKE_id_free_us.
[blender.git] / source / blender / blenkernel / intern / main.c
index e231302f1544c71f84c227cdf8fe02af444fff7b..61be1579fcfdeec5e27a1fe95166d34ef5fe539a 100644 (file)
@@ -64,6 +64,7 @@ void BKE_main_free(Main *mainvar)
        ListBase *lbarray[MAX_LIBARRAY];
        int a;
 
+       /* Since we are remonving whole main, no need to bother 'properly' (and slowly) removing each ID from it. */
        const int free_flag = LIB_ID_FREE_NO_MAIN | LIB_ID_FREE_NO_UI_USER | LIB_ID_FREE_NO_USER_REFCOUNT;
 
        MEM_SAFE_FREE(mainvar->blen_thumb);