diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-18 12:54:49 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-01-18 21:24:49 +0300 |
commit | c3873a5156447c583ab05c9d164d99e51929c070 (patch) | |
tree | e191a0539f3bdd0ce3902fe11dee12b9311ab9e5 /source/blender/blenkernel | |
parent | 8dbd5ea4c8af218de60cab4de72624b1bb753363 (diff) |
Fix memory leak in recent curve refactor
5b25605761fb7
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/curve.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c index d80f5fc6ee1..fbcdeafa56f 100644 --- a/source/blender/blenkernel/intern/curve.c +++ b/source/blender/blenkernel/intern/curve.c @@ -2622,6 +2622,9 @@ void BKE_curve_bevelList_free(ListBase *bev) if (bl->segbevcount != NULL) { MEM_freeN(bl->segbevcount); } + if (bl->bevpoints != NULL) { + MEM_freeN(bl->bevpoints); + } MEM_freeN(bl); } |