if (!_ecore_call_task_cb(legacy->func, (void*)legacy->data))
{
- if (eo_key_data_get(event->obj, "_legacy"))
- {
- eo_key_del(event->obj, "_legacy");
- eo_event_callback_del(event->obj, EFL_TIMER_EVENT_TICK,
- _ecore_timer_legacy_tick, legacy),
- free(legacy);
- eo_del(event->obj);
- }
+ eo_del(event->obj);
+ free(legacy);
}
return EO_CALLBACK_CONTINUE;
legacy = eo_key_data_get(timer, "_legacy");
data = (void*) legacy->data;
- eo_key_del(timer, "_legacy");
- eo_event_callback_del(timer, EFL_TIMER_EVENT_TICK,
- _ecore_timer_legacy_tick, legacy),
free(legacy);
+ eo_key_del(timer, "_legacy");
eo_del(timer);
return data;