summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-11-14 21:51:24 +0900
committerHermet Park <hermetpark@gmail.com>2018-11-14 21:51:24 +0900
commit01633207cabcafdaf078e7264c70c2c49f04be7a (patch)
tree2dedecc25a16bcd5bf2a67fd7e0b116b65ed376b /src/lib/evas
parente2cd8eea55c339d1ab96524113f5452a414957d5 (diff)
evas ector: fix memory leaks.
Summary: Make it sure ref/unref pairs. unpaired reference count occures object dangled. @fix Reviewers: #committers Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7270
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/canvas/evas_vg_shape.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_vg_shape.c b/src/lib/evas/canvas/evas_vg_shape.c
index 24cc485944..49ea67ff6e 100644
--- a/src/lib/evas/canvas/evas_vg_shape.c
+++ b/src/lib/evas/canvas/evas_vg_shape.c
@@ -137,8 +137,12 @@ _efl_canvas_vg_shape_efl_object_constructor(Eo *obj, Efl_Canvas_Vg_Shape_Data *p
137} 137}
138 138
139static void 139static void
140_efl_canvas_vg_shape_efl_object_destructor(Eo *obj, Efl_Canvas_Vg_Shape_Data *pd EINA_UNUSED) 140_efl_canvas_vg_shape_efl_object_destructor(Eo *obj, Efl_Canvas_Vg_Shape_Data *pd)
141{ 141{
142 if (pd->fill) efl_unref(pd->fill);
143 if (pd->stroke.fill) efl_unref(pd->stroke.fill);
144 if (pd->stroke.marker) efl_unref(pd->stroke.marker);
145
142 efl_gfx_path_reset(obj); 146 efl_gfx_path_reset(obj);
143 efl_destructor(efl_super(obj, MY_CLASS)); 147 efl_destructor(efl_super(obj, MY_CLASS));
144} 148}