diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-20 10:09:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-20 10:09:05 +0300 |
commit | 973afa0172a66b3d0921ec1d6fd28c6acc6afdbf (patch) | |
tree | 2fd861fc8687779360efcc4f6cf320df327e96a2 /source/blender/blenkernel | |
parent | f6c661a38f93500523e617b194ed350346d1830d (diff) |
Cleanup: use listbase clear
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/curve.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c index 6322570d562..1a67ac76937 100644 --- a/source/blender/blenkernel/intern/curve.c +++ b/source/blender/blenkernel/intern/curve.c @@ -2546,7 +2546,8 @@ void BKE_curve_bevelList_free(ListBase *bev) } MEM_freeN(bl); } - bev->first = bev->last = NULL; + + BLI_listbase_clear(bev); } void BKE_curve_bevelList_make(Object *ob, ListBase *nurbs, bool for_render) |