summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_canvas3d_mesh.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-09-05 18:09:36 +0900
committerHermet Park <hermetpark@gmail.com>2019-09-05 18:09:36 +0900
commit7915aafedda6cb663f185eaa97c187c03eb1a907 (patch)
tree559eee82c7a329cf30f6f3554a75526d6507158d /src/lib/evas/canvas/evas_canvas3d_mesh.c
parentc703fba14347f11507ebadc8736539a5a8eae63e (diff)
canvas 3d: remove potential dangling pointer.
Diffstat (limited to 'src/lib/evas/canvas/evas_canvas3d_mesh.c')
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_mesh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_canvas3d_mesh.c b/src/lib/evas/canvas/evas_canvas3d_mesh.c
index 64dd5f9..0bea10e 100644
--- a/src/lib/evas/canvas/evas_canvas3d_mesh.c
+++ b/src/lib/evas/canvas/evas_canvas3d_mesh.c
@@ -154,7 +154,10 @@ _mesh_fini(Evas_Canvas3D_Mesh_Data *pd)
154 } 154 }
155 155
156 if (pd->indices && pd->owns_indices) 156 if (pd->indices && pd->owns_indices)
157 free(pd->indices); 157 {
158 free(pd->indices);
159 pd->indices = NULL;
160 }
158 161
159 if (pd->nodes) 162 if (pd->nodes)
160 eina_hash_free(pd->nodes); 163 eina_hash_free(pd->nodes);