[Bf-blender-cvs] [9e1d113570a] master: Sculpt; Fix memory leak on redraw normals update
Sergey Sharybin
noreply at git.blender.org
Thu Mar 7 16:20:43 CET 2019
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);
}
}
More information about the Bf-blender-cvs
mailing list