seoz pushed a commit to branch master.

commit 34807bf5413c59a7c574c6c79c0540433ba65a36
Author: Daniel Juyung Seo <[email protected]>
Date:   Wed May 29 21:06:22 2013 +0900

    elm_slider.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_slider.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/lib/elm_slider.c b/src/lib/elm_slider.c
index 12591a0..4193afd 100644
--- a/src/lib/elm_slider.c
+++ b/src/lib/elm_slider.c
@@ -76,7 +76,7 @@ _val_fetch(Evas_Object *obj)
      {
         sd->val = val;
         evas_object_smart_callback_call(obj, SIG_CHANGED, NULL);
-        ELM_FREE_FUNC(sd->delay, ecore_timer_del);
+        if (sd->delay) ecore_timer_del(sd->delay);
         sd->delay = ecore_timer_add(SLIDER_DELAY_CHANGED_INTERVAL, 
_delay_change, obj);
      }
 }
@@ -837,10 +837,10 @@ _elm_slider_smart_del(Eo *obj, void *_pd, va_list *list 
EINA_UNUSED)
 {
    Elm_Slider_Smart_Data *sd = _pd;
 
-   ELM_FREE_FUNC(sd->indicator, eina_stringshare_del);
-   ELM_FREE_FUNC(sd->units, eina_stringshare_del);
-   ELM_FREE_FUNC(sd->delay, ecore_timer_del);
-   ELM_FREE_FUNC(sd->popup, evas_object_del);
+   if (sd->indicator) eina_stringshare_del(sd->indicator);
+   if (sd->units) eina_stringshare_del(sd->units);
+   if (sd->delay) ecore_timer_del(sd->delay);
+   if (sd->popup) evas_object_del(sd->popup);
 
    eo_do_super(obj, MY_CLASS, evas_obj_smart_del());
 }

-- 

------------------------------------------------------------------------------
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