summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-10-16 12:24:01 +0900
committerHermet Park <hermetpark@gmail.com>2018-10-16 12:24:01 +0900
commit00f889d91aee829b4488cc3d52221e369c8a0968 (patch)
tree56d76d16bfca3a16fe1bb0eb680719f65f46eadc
parent2cb2e6f87c73c076aca2894edc61808cf0741343 (diff)
evas vg: fix memory leak.
Summary: eina array must be flushed when object is deleted. @fix Reviewers: #committers, devilhorns Reviewed By: #committers, devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7160
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_vg_object.c b/src/lib/evas/canvas/efl_canvas_vg_object.c
index 6aa798a058..cc41ffcf2e 100644
--- a/src/lib/evas/canvas/efl_canvas_vg_object.c
+++ b/src/lib/evas/canvas/efl_canvas_vg_object.c
@@ -314,6 +314,7 @@ _efl_canvas_vg_object_efl_object_destructor(Eo *eo_obj, Efl_Canvas_Vg_Object_Dat
314 Evas *e = evas_object_evas_get(eo_obj); 314 Evas *e = evas_object_evas_get(eo_obj);
315 315
316 efl_event_callback_del(e, EFL_CANVAS_SCENE_EVENT_RENDER_POST, _cleanup_reference, pd); 316 efl_event_callback_del(e, EFL_CANVAS_SCENE_EVENT_RENDER_POST, _cleanup_reference, pd);
317 eina_array_flush(&pd->cleanup);
317 318
318 efl_unref(pd->root); 319 efl_unref(pd->root);
319 pd->root = NULL; 320 pd->root = NULL;