diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-11 18:36:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-11 18:37:14 +0300 |
commit | d49591654701b032bfea31b487941c7187ddd4a7 (patch) | |
tree | e70183a02ebf28eba82a87d6117405b7ea46f196 /source | |
parent | 57f9e31bf4fb23b8a74f55c6778022eb5dd3b259 (diff) |
Multires: Fix memory leak on reshape
Was happening when number of vertices didn't match.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_foreach.c | 1 |
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; } } |