seoz pushed a commit to branch master.

commit 5bc9718b47adc6e34f1f6c6f759c21b534cdead3
Author: Daniel Juyung Seo <[email protected]>
Date:   Wed May 29 20:52:16 2013 +0900

    elm_flip.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_flip.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/lib/elm_flip.c b/src/lib/elm_flip.c
index 676e9f6..84dd703 100644
--- a/src/lib/elm_flip.c
+++ b/src/lib/elm_flip.c
@@ -1552,7 +1552,7 @@ _down_cb(void *data,
 
    if (ev->button != 1) return;
    if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
-   ELM_FREE_FUNC(sd->animator, ecore_animator_del);
+   ELM_SAFE_FREE(sd->animator, ecore_animator_del);
    sd->down = EINA_TRUE;
    sd->started = EINA_FALSE;
    evas_object_geometry_get(data, &x, &y, &w, &h);
@@ -1588,11 +1588,7 @@ _up_cb(void *data,
    sd->h = h;
    sd->ox = sd->x;
    sd->oy = sd->y;
-   if (sd->job)
-     {
-        ecore_job_del(sd->job);
-        sd->job = NULL;
-     }
+   ELM_SAFE_FREE(sd->job, ecore_job_del);
    sd->finish = EINA_FALSE;
    if (sd->dir == 0)
      {

-- 

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