elementary: correctly unref before clearing the list and prevent infinite loop.

SVN revision: 64773
This commit is contained in:
Cedric BAIL 2011-11-05 17:01:55 +00:00
parent d1a4b05805
commit 042de93b3d
1 changed files with 1 additions and 1 deletions

View File

@ -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