forked from enlightenment/efl
elm_video.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended. For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
This commit is contained in:
parent
72879a226f
commit
2d8d13a26c
|
@ -282,7 +282,7 @@ _elm_video_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
||||||
Elm_Video_Smart_Data *sd = _pd;
|
Elm_Video_Smart_Data *sd = _pd;
|
||||||
|
|
||||||
#ifdef HAVE_EMOTION
|
#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);
|
if (sd->remember) emotion_object_last_position_save(sd->emotion);
|
||||||
#else
|
#else
|
||||||
(void) sd;
|
(void) sd;
|
||||||
|
@ -392,7 +392,7 @@ _play(Eo *obj EINA_UNUSED, void *_pd, va_list *list EINA_UNUSED)
|
||||||
|
|
||||||
if (emotion_object_play_get(sd->emotion)) return;
|
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;
|
sd->stop = EINA_FALSE;
|
||||||
emotion_object_play_set(sd->emotion, EINA_TRUE);
|
emotion_object_play_set(sd->emotion, EINA_TRUE);
|
||||||
#else
|
#else
|
||||||
|
@ -444,7 +444,7 @@ _stop(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
|
||||||
|
|
||||||
if (!emotion_object_play_get(sd->emotion) && sd->stop) return;
|
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;
|
sd->stop = EINA_TRUE;
|
||||||
emotion_object_play_set(sd->emotion, EINA_FALSE);
|
emotion_object_play_set(sd->emotion, EINA_FALSE);
|
||||||
|
|
Loading…
Reference in New Issue