canvas 3d: remove potential dangling pointer.

This commit is contained in:
Hermet Park 2019-09-05 18:09:36 +09:00
parent c703fba143
commit 7915aafedd
1 changed files with 4 additions and 1 deletions

View File

@ -154,7 +154,10 @@ _mesh_fini(Evas_Canvas3D_Mesh_Data *pd)
}
if (pd->indices && pd->owns_indices)
free(pd->indices);
{
free(pd->indices);
pd->indices = NULL;
}
if (pd->nodes)
eina_hash_free(pd->nodes);