seoz pushed a commit to branch master.
commit 1c033f1ee298cc9454487720cf00cedd0cf52f18
Author: Daniel Juyung Seo <[email protected]>
Date: Wed May 29 20:22:16 2013 +0900
elm_access.c: ELM_SAFE_FREE adoption for access.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as
recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
---
src/lib/elm_access.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/lib/elm_access.c b/src/lib/elm_access.c
index ec74f66..1ad0884 100644
--- a/src/lib/elm_access.c
+++ b/src/lib/elm_access.c
@@ -191,8 +191,7 @@ _access_shutdown(void)
initted = 0;
- free(mapi);
- mapi = NULL;
+ ELM_SAFE_FREE(mapi, free);
}
static Elm_Access_Item *
@@ -297,7 +296,7 @@ _access_obj_mouse_in_cb(void *data, Evas *e __UNUSED__,
Evas_Object *obj __UNUSE
ac = evas_object_data_get(data, "_elm_access");
if (!ac) return;
- ELM_FREE_FUNC(ac->delay_timer, ecore_timer_del);
+ ELM_SAFE_FREE(ac->delay_timer, ecore_timer_del);
if (_elm_config->access_mode != ELM_ACCESS_MODE_OFF)
ac->delay_timer = ecore_timer_add(0.2, _access_obj_over_timeout_cb,
data);
@@ -314,7 +313,7 @@ _access_obj_mouse_out_cb(void *data, Evas *e __UNUSED__,
Evas_Object *obj __UNUS
_elm_access_object_unhilight(data);
- ELM_FREE_FUNC(ac->delay_timer, ecore_timer_del);
+ ELM_SAFE_FREE(ac->delay_timer, ecore_timer_del);
}
static void
@@ -558,7 +557,7 @@ _elm_access_clear(Elm_Access_Info *ac)
Elm_Access_Item *ai;
if (!ac) return;
- ELM_FREE_FUNC(ac->delay_timer, ecore_timer_del);
+ ELM_SAFE_FREE(ac->delay_timer, ecore_timer_del);
EINA_LIST_FREE(ac->items, ai)
{
if (!ai->func)
--
------------------------------------------------------------------------------
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