seoz pushed a commit to branch master.

commit baaa232ab5be729414489847a7ce6baf8259564f
Author: Daniel Juyung Seo <[email protected]>
Date:   Wed May 29 20:22:54 2013 +0900

    elm_bg.c: ELM_SAFE_FREE adoption for bg.
    
    I splited ELM_SAFE_FREE refactoring patches. One commit per each file as 
recommended.
    For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
---
 src/lib/elm_bg.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/lib/elm_bg.c b/src/lib/elm_bg.c
index 0f517b9..aca3ef6 100644
--- a/src/lib/elm_bg.c
+++ b/src/lib/elm_bg.c
@@ -184,10 +184,8 @@ _file_set(Eo *obj, void *_pd, va_list *list)
      }
    if (!file)
      {
-        eina_stringshare_del(sd->file);
-        sd->file = NULL;
-        eina_stringshare_del(sd->group);
-        sd->group = NULL;
+        ELM_SAFE_FREE(sd->file, eina_stringshare_del);
+        ELM_SAFE_FREE(sd->group, eina_stringshare_del);
         if (ret) *ret = EINA_TRUE;
         return;
      }

-- 

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