seoz pushed a commit to branch master.
commit 4186a6d91c11ab198e25513937cfad5b61bf8e0c
Author: Daniel Juyung Seo <[email protected]>
Date: Wed May 29 21:08:22 2013 +0900
elm_thumb.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_thumb.c | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/src/lib/elm_thumb.c b/src/lib/elm_thumb.c
index aae336d..906fae5 100644
--- a/src/lib/elm_thumb.c
+++ b/src/lib/elm_thumb.c
@@ -189,11 +189,8 @@ _thumb_retry(Elm_Thumb_Smart_Data *sd)
_thumb_ready_inform(sd, sd->thumb.thumb_path, sd->thumb.thumb_key);
- eina_stringshare_del(sd->thumb.thumb_path);
- sd->thumb.thumb_path = NULL;
-
- eina_stringshare_del(sd->thumb.thumb_key);
- sd->thumb.thumb_key = NULL;
+ ELM_SAFE_FREE(sd->thumb.thumb_path, eina_stringshare_del);
+ ELM_SAFE_FREE(sd->thumb.thumb_key, eina_stringshare_del);
return EINA_TRUE;
@@ -473,11 +470,7 @@ _elm_thumb_smart_hide(Eo *obj, void *_pd, va_list *list
EINA_UNUSED)
sd->thumb.retry = EINA_FALSE;
}
- if (sd->eeh)
- {
- ecore_event_handler_del(sd->eeh);
- sd->eeh = NULL;
- }
+ ELM_SAFE_FREE(sd->eeh, ecore_event_handler_del);
#endif
}
--
------------------------------------------------------------------------------
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