Fix memory leak
This commit is contained in:
parent
c6e84bb7f5
commit
7650f83c36
@ -481,8 +481,10 @@ void delete_object(HE_obj *obj)
|
|||||||
if (!obj)
|
if (!obj)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (uint32_t i = 0; i < obj->vc; i++)
|
for (uint32_t i = 0; i < obj->vc; i++) {
|
||||||
free(obj->vertices[i].vec);
|
free(obj->vertices[i].vec);
|
||||||
|
free(obj->vertices[i].edge_array);
|
||||||
|
}
|
||||||
free(obj->edges);
|
free(obj->edges);
|
||||||
free(obj->vertices);
|
free(obj->vertices);
|
||||||
free(obj->faces);
|
free(obj->faces);
|
||||||
|
Loading…
Reference in New Issue
Block a user