summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Devichev <b.devichev@samsung.com>2015-06-03 21:26:34 +0900
committerChunEon Park <chuneon.park@samsung.com>2015-06-03 21:26:34 +0900
commit8369dfd28fc60cbc021dabc7e1f73bf5d4e672a6 (patch)
tree3fe8241487f383f1071513a1d00b211540f4b549
parent63a12d7d26f53b22b7794eb61897de930614bac7 (diff)
evas_3d: fix coverity scan CID 1302703 and CID 1302702
Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2613
-rw-r--r--src/lib/evas/canvas/evas_3d_primitive.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/evas/canvas/evas_3d_primitive.c b/src/lib/evas/canvas/evas_3d_primitive.c
index 34ecab6aef..6314c4a6c6 100644
--- a/src/lib/evas/canvas/evas_3d_primitive.c
+++ b/src/lib/evas/canvas/evas_3d_primitive.c
@@ -14,13 +14,6 @@ _primitive_init(Evas_3D_Primitive_Data *pd)
14 pd->tex_scale.y = 1.0; 14 pd->tex_scale.y = 1.0;
15} 15}
16 16
17static inline void
18_primitive_fini(Evas_3D_Primitive_Data *pd)
19{
20 if (pd->surface)
21 free(pd->surface);
22}
23
24EAPI Evas_3D_Primitive * 17EAPI Evas_3D_Primitive *
25evas_3d_primitive_add(Evas *e) 18evas_3d_primitive_add(Evas *e)
26{ 19{
@@ -44,7 +37,6 @@ _evas_3d_primitive_eo_base_constructor(Eo *obj, Evas_3D_Primitive_Data *pd)
44EOLIAN static void 37EOLIAN static void
45_evas_3d_primitive_eo_base_destructor(Eo *obj, Evas_3D_Primitive_Data *pd) 38_evas_3d_primitive_eo_base_destructor(Eo *obj, Evas_3D_Primitive_Data *pd)
46{ 39{
47 _primitive_fini(pd);
48 eo_do_super(obj, MY_CLASS, eo_destructor()); 40 eo_do_super(obj, MY_CLASS, eo_destructor());
49} 41}
50 42