BLI: fix memory leak in delaunay 2d
Differential Revision: https://developer.blender.org/D8633
This commit is contained in:
parent
dc61f7c171
commit
42434d120b
Notes:
blender-bot
2023-02-14 08:45:09 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
|
@ -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…
Reference in New Issue