Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-03-07 17:40:04 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-03-07 18:09:15 +0300
commit9e1d113570aa131b0a7c0fb62f1c38a040cd6c36 (patch)
tree4aa100ab7a7c66044a7b7a63207f2a114402f910 /source
parent967d82d9b9489aa9f08270a4fafc8415158690ea (diff)
Sculpt; Fix memory leak on redraw normals update
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/modes/sculpt_mode.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}