summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-03-15 12:50:20 -0400
committerCedric Bail <cedric@osg.samsung.com>2018-03-20 17:20:56 -0700
commit4c4177ac207f982de8139c47c7afedd26ff9e15a (patch)
tree1913e890dc525621f4dec3ce281b340d81608a72 /src/lib/eio/eio_model.c
parenta1bf513920e813037756e01cc2e01770befea77c (diff)
efl: use efl_add_ref to create objects which have no parent
Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com>
Diffstat (limited to 'src/lib/eio/eio_model.c')
-rw-r--r--src/lib/eio/eio_model.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index ec2672d..76cdc24 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -807,7 +807,7 @@ _eio_model_efl_object_parent_get(Eo *obj , Eio_Model_Data *priv)
807 char *path = ecore_file_dir_get(priv->path); 807 char *path = ecore_file_dir_get(priv->path);
808 if (path != NULL && strcmp(priv->path, "/") != 0) 808 if (path != NULL && strcmp(priv->path, "/") != 0)
809 { 809 {
810 model = efl_add(MY_CLASS, NULL, eio_model_path_set(efl_added, path)); 810 model = efl_add_ref(MY_CLASS, NULL, eio_model_path_set(efl_added, path));
811 } 811 }
812 else 812 else
813 model = NULL; 813 model = NULL;