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
This commit is contained in:
Hermet Park 2018-10-16 12:24:01 +09:00
parent 2cb2e6f87c
commit 00f889d91a
1 changed files with 1 additions and 0 deletions

View File

@ -314,6 +314,7 @@ _efl_canvas_vg_object_efl_object_destructor(Eo *eo_obj, Efl_Canvas_Vg_Object_Dat
Evas *e = evas_object_evas_get(eo_obj);
efl_event_callback_del(e, EFL_CANVAS_SCENE_EVENT_RENDER_POST, _cleanup_reference, pd);
eina_array_flush(&pd->cleanup);
efl_unref(pd->root);
pd->root = NULL;