aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-03-19 15:36:58 -0700
committerCedric Bail <cedric@osg.samsung.com>2018-03-19 15:36:58 -0700
commit2c336d3063de435c207017628f87ab717a6987a5 (patch)
tree49d1cb29ad03c9c864243eb000dc15a8ad9a3ce2
parentevas: technically the evas canvas is using the main loop, so let's make canva... (diff)
downloadefl-2c336d3063de435c207017628f87ab717a6987a5.tar.gz
evas: use efl_add_ref for the container, might consider using a parent later on.
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_vg.c b/src/lib/evas/canvas/efl_canvas_vg.c
index 19a9137cef..77b0ca509a 100644
--- a/src/lib/evas/canvas/efl_canvas_vg.c
+++ b/src/lib/evas/canvas/efl_canvas_vg.c
@@ -321,7 +321,7 @@ _efl_canvas_vg_efl_object_destructor(Eo *eo_obj, Efl_Canvas_Vg_Data *pd)
efl_event_callback_del(e, EFL_CANVAS_EVENT_RENDER_POST, _cleanup_reference, pd);
- efl_del(pd->root);
+ efl_unref(pd->root);
pd->root = NULL;
efl_destructor(efl_super(eo_obj, MY_CLASS));
}
@@ -339,7 +339,7 @@ _efl_canvas_vg_efl_object_constructor(Eo *eo_obj, Efl_Canvas_Vg_Data *pd)
obj->type = o_type;
/* root node */
- pd->root = efl_add(EFL_CANVAS_VG_CONTAINER_CLASS, NULL);
+ pd->root = efl_add_ref(EFL_CANVAS_VG_CONTAINER_CLASS, NULL);
eina_array_step_set(&pd->cleanup, sizeof(pd->cleanup), 8);