mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
BLI: fix memory leak in delaunay 2d
Differential Revision: https://developer.blender.org/D8633
This commit is contained in:
parent
dc61f7c171
commit
42434d120b
1 changed files with 3 additions and 0 deletions
|
|
@ -3379,6 +3379,9 @@ CDT_result *BLI_delaunay_2d_cdt_calc(const CDT_input *input, const CDT_output_ty
|
|||
if (input != input_orig) {
|
||||
free_modified_input((CDT_input *)input);
|
||||
}
|
||||
if (new_edge_map != NULL) {
|
||||
MEM_freeN(new_edge_map);
|
||||
}
|
||||
new_cdt_free(cdt);
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue