elementary/elm_index : Freed pointer should not be returned.

SVN revision: 82458
This commit is contained in:
WooHyun Jung 2013-01-09 12:43:51 +00:00
parent a345019094
commit f696af78d1
1 changed files with 5 additions and 1 deletions

View File

@ -1259,11 +1259,15 @@ _item_sorted_insert(Eo *obj, void *_pd, va_list *list)
p_it->base.data = it->base.data;
_item_free(it);
elm_widget_item_del(it);
it = NULL;
}
}
_index_box_clear(obj, sd->bx[sd->level], sd->level);
*ret = (Elm_Object_Item *)it;
if (!it)
*ret = NULL;
else
*ret = (Elm_Object_Item *)it;
}
EAPI Elm_Object_Item *