seoz pushed a commit to branch master.
commit 1164ae67997b774fa860428724a1bc878bbaf58c
Author: Daniel Juyung Seo <[email protected]>
Date: Wed May 29 20:56:07 2013 +0900
elm_image.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_image.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index 517485a..7b09da9 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -664,9 +664,9 @@ _elm_image_smart_del(Eo *obj, void *_pd, va_list *list
EINA_UNUSED)
{
Elm_Image_Smart_Data *sd = _pd;
- ELM_FREE_FUNC(sd->anim_timer, ecore_timer_del);
- ELM_FREE_FUNC(sd->img, evas_object_del);
- ELM_FREE_FUNC(sd->prev_img, evas_object_del);
+ if (sd->anim_timer) ecore_timer_del(sd->anim_timer);
+ if (sd->img) evas_object_del(sd->img);
+ if (sd->prev_img) evas_object_del(sd->prev_img);
eo_do_super(obj, MY_CLASS, evas_obj_smart_del());
}
@@ -1509,7 +1509,7 @@ _elm_image_smart_animated_play_set(Eo *obj, void *_pd,
va_list *list)
}
else
{
- ELM_FREE_FUNC(sd->anim_timer, ecore_timer_del);
+ ELM_SAFE_FREE(sd->anim_timer, ecore_timer_del);
}
sd->play = play;
}
--
------------------------------------------------------------------------------
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