summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_access.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-05-29 20:22:16 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-05-29 20:22:16 +0900
commitb0f793baa7eabb1f14f7108e0f0a2b4f8a351ef6 (patch)
tree3e413f67504be13d5fc56c0cc367933935d62ed5 /legacy/elementary/src/lib/elm_access.c
parent9e3517fbcd560b9e3ebff54ca3ac39a5539819da (diff)
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.
Diffstat (limited to 'legacy/elementary/src/lib/elm_access.c')
-rw-r--r--legacy/elementary/src/lib/elm_access.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/legacy/elementary/src/lib/elm_access.c b/legacy/elementary/src/lib/elm_access.c
index ec74f66..1ad0884 100644
--- a/legacy/elementary/src/lib/elm_access.c
+++ b/legacy/elementary/src/lib/elm_access.c
@@ -191,8 +191,7 @@ _access_shutdown(void)
191 191
192 initted = 0; 192 initted = 0;
193 193
194 free(mapi); 194 ELM_SAFE_FREE(mapi, free);
195 mapi = NULL;
196} 195}
197 196
198static Elm_Access_Item * 197static Elm_Access_Item *
@@ -297,7 +296,7 @@ _access_obj_mouse_in_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSE
297 ac = evas_object_data_get(data, "_elm_access"); 296 ac = evas_object_data_get(data, "_elm_access");
298 if (!ac) return; 297 if (!ac) return;
299 298
300 ELM_FREE_FUNC(ac->delay_timer, ecore_timer_del); 299 ELM_SAFE_FREE(ac->delay_timer, ecore_timer_del);
301 300
302 if (_elm_config->access_mode != ELM_ACCESS_MODE_OFF) 301 if (_elm_config->access_mode != ELM_ACCESS_MODE_OFF)
303 ac->delay_timer = ecore_timer_add(0.2, _access_obj_over_timeout_cb, data); 302 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
314 313
315 _elm_access_object_unhilight(data); 314 _elm_access_object_unhilight(data);
316 315
317 ELM_FREE_FUNC(ac->delay_timer, ecore_timer_del); 316 ELM_SAFE_FREE(ac->delay_timer, ecore_timer_del);
318} 317}
319 318
320static void 319static void
@@ -558,7 +557,7 @@ _elm_access_clear(Elm_Access_Info *ac)
558 Elm_Access_Item *ai; 557 Elm_Access_Item *ai;
559 558
560 if (!ac) return; 559 if (!ac) return;
561 ELM_FREE_FUNC(ac->delay_timer, ecore_timer_del); 560 ELM_SAFE_FREE(ac->delay_timer, ecore_timer_del);
562 EINA_LIST_FREE(ac->items, ai) 561 EINA_LIST_FREE(ac->items, ai)
563 { 562 {
564 if (!ai->func) 563 if (!ai->func)