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.
This commit is contained in:
Daniel Juyung Seo 2013-05-29 20:52:16 +09:00
parent 742fa688d8
commit 2bbc41d4ae
1 changed files with 2 additions and 6 deletions

View File

@ -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)
{