NULL pointer after deleting timer to avoid bitching later

Patch by Brian Wang


SVN revision: 47462
This commit is contained in:
Iván Briano 2010-03-26 03:17:05 +00:00
parent 439a3bd492
commit b01e9fc400
1 changed files with 5 additions and 1 deletions

View File

@ -938,7 +938,11 @@ _item_unrealize(Elm_Genlist_Item *it)
Evas_Object *icon;
if (!it->realized) return;
if (it->long_timer) ecore_timer_del(it->long_timer);
if (it->long_timer)
{
ecore_timer_del(it->long_timer);
it->long_timer = NULL;
}
evas_object_del(it->base);
it->base = NULL;
evas_object_del(it->spacer);