forked from enlightenment/efl
elementary: correctly unref before clearing the list and prevent infinite loop.
SVN revision: 64773
This commit is contained in:
parent
d1a4b05805
commit
042de93b3d
|
@ -335,6 +335,7 @@ _item_select(Elm_Gen_Item *it)
|
|||
evas_object_smart_callback_call(WIDGET(it), SIG_SELECTED, it);
|
||||
it->walking--;
|
||||
it->wd->walking--;
|
||||
evas_object_unref(WIDGET(it));
|
||||
if ((it->wd->clear_me) && (!it->wd->walking))
|
||||
elm_gen_clear(WIDGET(it));
|
||||
else
|
||||
|
@ -346,7 +347,6 @@ _item_select(Elm_Gen_Item *it)
|
|||
else
|
||||
it->wd->last_selected_item = it;
|
||||
}
|
||||
evas_object_unref(WIDGET(it));
|
||||
}
|
||||
/******************************************************************************/
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue