Multires: Fiux memory leak
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 7 Mar 2019 11:16:25 +0000 (12:16 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 7 Mar 2019 11:16:50 +0000 (12:16 +0100)
The work data for materials flags was never freed.

source/blender/blenkernel/intern/subdiv_ccg.c

index e14e4d91e1eada38e38716250dcf8c79b1207ebd..6840e07c12919381b8a2ae264186b96546ad6a1b 100644 (file)
@@ -665,6 +665,7 @@ Mesh *BKE_subdiv_to_ccg_mesh(
        if (has_mask) {
                mask_evaluator.free(&mask_evaluator);
        }
+       material_flags_evaluator.free(&material_flags_evaluator);
        if (subdiv_ccg == NULL) {
                return NULL;
        }