seoz pushed a commit to branch master.
commit 0f38be8ac3290e1769088e8af990410f473d7923
Author: Daniel Juyung Seo <[email protected]>
Date: Wed May 29 21:04:07 2013 +0900
elm_mapbuf.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_mapbuf.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/lib/elm_mapbuf.c b/src/lib/elm_mapbuf.c
index d29c89d..eb301c4 100644
--- a/src/lib/elm_mapbuf.c
+++ b/src/lib/elm_mapbuf.c
@@ -288,8 +288,7 @@ _elm_mapbuf_smart_content_unset(Eo *obj, void *_pd, va_list
*list)
evas_object_data_del(content, "_elm_leaveme");
evas_object_color_set(wd->resize_obj, 0, 0, 0, 0);
if (ret) *ret = content;
- if (sd->idler) ecore_idler_del(sd->idler);
- sd->idler = NULL;
+ ELM_SAFE_FREE(sd->idler, ecore_idler_del);
}
static void
@@ -484,8 +483,7 @@ _auto_set(Eo *obj, void *_pd, va_list *list)
}
else
{
- if (sd->idler) ecore_idler_del(sd->idler);
- sd->idler = NULL;
+ ELM_SAFE_FREE(sd->idler, ecore_idler_del);
_internal_enable_set(obj, _pd, 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