seoz pushed a commit to branch master.

commit 06125f557a0f85d84a3bd890167c0a6ecb436656
Author: Daniel Juyung Seo <[email protected]>
Date:   Wed May 29 20:55:19 2013 +0900

    elm_icon.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_icon.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/lib/elm_icon.c b/src/lib/elm_icon.c
index eaeb8b8..16b067a 100644
--- a/src/lib/elm_icon.c
+++ b/src/lib/elm_icon.c
@@ -387,10 +387,7 @@ _elm_icon_smart_file_set(Eo *obj, void *_pd, va_list *list)
 
 #ifdef ELM_EFREET
    if (!sd->freedesktop.use)
-     {
-        if (sd->stdicon) eina_stringshare_del(sd->stdicon);
-        sd->stdicon = NULL;
-     }
+     ELM_SAFE_FREE(sd->stdicon, eina_stringshare_del);
 #endif
 
    if (!sd->is_video)
@@ -451,8 +448,7 @@ _elm_icon_smart_memfile_set(Eo *obj, void *_pd, va_list 
*list)
 
    EINA_SAFETY_ON_NULL_RETURN(img);
    EINA_SAFETY_ON_TRUE_RETURN(!size);
-   eina_stringshare_del(sd->stdicon);
-   sd->stdicon = NULL;
+   ELM_SAFE_FREE(sd->stdicon, eina_stringshare_del);
 
    _edje_signals_free(sd);
 

-- 

------------------------------------------------------------------------------
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

Reply via email to