Fix memory leak in recent curve refactor

5b25605761fb7
This commit is contained in:
Campbell Barton 2018-01-18 20:54:49 +11:00
parent 7b3e441bcf
commit 42a562496b
Notes: blender-bot 2023-02-14 08:45:09 +01:00
Referenced by issue #53830, Assertion failed on OpenCL rendering
Referenced by issue #53683, 2.79a release
1 changed files with 3 additions and 0 deletions

View File

@ -2623,6 +2623,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);
}