summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-04-03 14:25:20 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-04-03 14:26:59 -0700
commit49fbdcf17a1efae6f58f924890c34ad82830aac7 (patch)
treee223c7df39a7b40126bab76b56c1a692cb73908f /src/static_libs
parentc88780b39821172ffb8bcf3f6a137a4ff8241c30 (diff)
evas: vg loader actually should hold a ref when no parent is given.
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/static_libs/vg_common/vg_common.c b/src/static_libs/vg_common/vg_common.c
index b3afb7d..b6be729 100644
--- a/src/static_libs/vg_common/vg_common.c
+++ b/src/static_libs/vg_common/vg_common.c
@@ -762,7 +762,10 @@ vg_common_create_vg_node_helper(Svg_Node *node, Efl_VG *parent, Vg_File_Data *vg
762 case SVG_NODE_DOC: 762 case SVG_NODE_DOC:
763 case SVG_NODE_G: 763 case SVG_NODE_G:
764 { 764 {
765 vg = evas_vg_container_add(parent); 765 if (!parent)
766 vg = efl_add_ref(EFL_CANVAS_VG_CONTAINER_CLASS, NULL);
767 else
768 vg = efl_add(EFL_CANVAS_VG_CONTAINER_CLASS, parent);
766 _apply_vg_property(node, vg, vg_data); 769 _apply_vg_property(node, vg, vg_data);
767 EINA_LIST_FOREACH(node->child, l, child) 770 EINA_LIST_FOREACH(node->child, l, child)
768 { 771 {