summaryrefslogtreecommitdiff
path: root/src/lib/elm_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elm_list.c')
-rw-r--r--src/lib/elm_list.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index 14164dcf5..225f89256 100644
--- a/src/lib/elm_list.c
+++ b/src/lib/elm_list.c
@@ -2284,7 +2284,8 @@ _item_new(Evas_Object *obj,
Evas_Smart_Cb func,
const void *data)
{
- Eo *eo_it = eo_add(ELM_LIST_ITEM_CLASS, obj);
+ Eo *eo_it = NULL;
+ eo_add(&eo_it, ELM_LIST_ITEM_CLASS, obj);
if (!eo_it) return NULL;
ELM_LIST_ITEM_DATA_GET(eo_it, it);
@@ -2541,7 +2542,8 @@ EAPI Evas_Object *
elm_list_add(Evas_Object *parent)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
- Evas_Object *obj = eo_add(MY_CLASS, parent);
+ Evas_Object *obj = NULL;
+ eo_add(&obj, MY_CLASS, parent);
return obj;
}