seoz pushed a commit to branch master.

commit b2b2dd919ef4003c7b7f2c4cc325f0b69a8e895f
Author: Daniel Juyung Seo <[email protected]>
Date:   Wed May 29 21:10:05 2013 +0900

    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.
---
 src/lib/elm_video.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/elm_video.c b/src/lib/elm_video.c
index ceac5db..57b47fa 100644
--- a/src/lib/elm_video.c
+++ b/src/lib/elm_video.c
@@ -282,7 +282,7 @@ _elm_video_smart_del(Eo *obj, void *_pd, va_list *list 
EINA_UNUSED)
    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;
@@ -392,7 +392,7 @@ _play(Eo *obj EINA_UNUSED, void *_pd, va_list *list 
EINA_UNUSED)
 
    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
@@ -444,7 +444,7 @@ _stop(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
 
    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);

-- 

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1

Reply via email to