Commit: 9e1d113570aa131b0a7c0fb62f1c38a040cd6c36
Author: Sergey Sharybin
Date:   Thu Mar 7 15:40:04 2019 +0100
Branches: master
https://developer.blender.org/rB9e1d113570aa131b0a7c0fb62f1c38a040cd6c36

Sculpt; Fix memory leak on redraw normals update

===================================================================

M       source/blender/draw/modes/sculpt_mode.c

===================================================================

diff --git a/source/blender/draw/modes/sculpt_mode.c 
b/source/blender/draw/modes/sculpt_mode.c
index a0ae5d0754a..ead539bc30f 100644
--- a/source/blender/draw/modes/sculpt_mode.c
+++ b/source/blender/draw/modes/sculpt_mode.c
@@ -170,6 +170,7 @@ static void sculpt_update_pbvh_normals(Object *object)
        BKE_pbvh_get_grid_updates(pbvh, 1, (void ***)&faces, &num_faces);
        if (num_faces > 0) {
                BKE_subdiv_ccg_update_normals(subdiv_ccg, faces, num_faces);
+               MEM_freeN(faces);
        }
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to