Elm_Video_Smart_Data *sd = _pd;
#ifdef HAVE_EMOTION
- ELM_FREE_FUNC(sd->timer, ecore_timer_del);
+ if (sd->timer) ecore_timer_del(sd->timer);
if (sd->remember) emotion_object_last_position_save(sd->emotion);
#else
(void) sd;
if (emotion_object_play_get(sd->emotion)) return;
- ELM_FREE_FUNC(sd->timer, ecore_timer_del);
+ ELM_SAFE_FREE(sd->timer, ecore_timer_del);
sd->stop = EINA_FALSE;
emotion_object_play_set(sd->emotion, EINA_TRUE);
#else
if (!emotion_object_play_get(sd->emotion) && sd->stop) return;
- ELM_FREE_FUNC(sd->timer, ecore_timer_del);
+ ELM_SAFE_FREE(sd->timer, ecore_timer_del);
sd->stop = EINA_TRUE;
emotion_object_play_set(sd->emotion, EINA_FALSE);