From: Enlightenment S. <no-...@en...> - 2013-01-09 12:44:01
|
Log: elementary/elm_index : Freed pointer should not be returned. Author: woohyun Date: 2013-01-09 04:43:51 -0800 (Wed, 09 Jan 2013) New Revision: 82458 Trac: http://trac.enlightenment.org/e/changeset/82458 Modified: trunk/elementary/src/lib/elm_index.c Modified: trunk/elementary/src/lib/elm_index.c =================================================================== --- trunk/elementary/src/lib/elm_index.c 2013-01-09 12:22:52 UTC (rev 82457) +++ trunk/elementary/src/lib/elm_index.c 2013-01-09 12:43:51 UTC (rev 82458) @@ -1259,11 +1259,15 @@ 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 * |