_timer_init(Evas_Object *obj,
Elm_Notify_Smart_Data *sd)
{
- ELM_FREE_FUNC(sd->timer, ecore_timer_del);
+ if (sd->timer) ecore_timer_del(sd->timer);
if (sd->timeout > 0.0)
sd->timer = ecore_timer_add(sd->timeout, _timer_cb, obj);
}
evas_object_hide(sd->notify);
if (!sd->allow_events) evas_object_hide(sd->block_events);
- ELM_FREE_FUNC(sd->timer, ecore_timer_del);
+ ELM_SAFE_FREE(sd->timer, ecore_timer_del);
}
static void
elm_notify_parent_set(obj, NULL);
elm_notify_allow_events_set(obj, EINA_FALSE);
- ELM_FREE_FUNC(sd->timer, ecore_timer_del);
+ if (sd->timer) ecore_timer_del(sd->timer);
eo_do_super(obj, MY_CLASS, evas_obj_smart_del());
}