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
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-09-11 18:36:39 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-09-11 18:37:14 +0300
commitd49591654701b032bfea31b487941c7187ddd4a7 (patch)
treee70183a02ebf28eba82a87d6117405b7ea46f196 /source/blender/blenkernel/intern/subdiv_foreach.c
parent57f9e31bf4fb23b8a74f55c6778022eb5dd3b259 (diff)
Multires: Fix memory leak on reshape
Was happening when number of vertices didn't match.
Diffstat (limited to 'source/blender/blenkernel/intern/subdiv_foreach.c')
-rw-r--r--source/blender/blenkernel/intern/subdiv_foreach.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_foreach.c b/source/blender/blenkernel/intern/subdiv_foreach.c
index 5c53a0e4126..5c45d7017d3 100644
--- a/source/blender/blenkernel/intern/subdiv_foreach.c
+++ b/source/blender/blenkernel/intern/subdiv_foreach.c
@@ -1994,6 +1994,7 @@ bool BKE_subdiv_foreach_subdiv_geometry(
ctx.num_subdiv_loops,
ctx.num_subdiv_polygons))
{
+ subdiv_foreach_ctx_free(&ctx);
return false;
}
}