discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=5503e29169ea99f01651511ae13336c0ae51a300

commit 5503e29169ea99f01651511ae13336c0ae51a300
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Mar 28 09:43:05 2014 -0400

    stringshare_replace in fwin: it exists for a reason, stop using macros ffs
---
 src/modules/fileman/e_fwin.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/modules/fileman/e_fwin.c b/src/modules/fileman/e_fwin.c
index 6115d5c..4e5cf01 100644
--- a/src/modules/fileman/e_fwin.c
+++ b/src/modules/fileman/e_fwin.c
@@ -1730,12 +1730,10 @@ _e_fwin_changed(void *data,
      }
    else
      {
-#define RELEASE_STR(x) if (x) {eina_stringshare_del(x); (x) = NULL; }
-        RELEASE_STR(fwin->wallpaper_file);
-        RELEASE_STR(fwin->overlay_file);
-        RELEASE_STR(fwin->scrollframe_file);
-        RELEASE_STR(fwin->theme_file);
-#undef RELEASE_STR
+        eina_stringshare_replace(&fwin->wallpaper_file, NULL);
+        eina_stringshare_replace(&fwin->overlay_file, NULL);
+        eina_stringshare_replace(&fwin->scrollframe_file, NULL);
+        eina_stringshare_replace(&fwin->theme_file, NULL);
      }
    if (fwin->under_obj) evas_object_hide(fwin->under_obj);
    if (fwin->wallpaper_file)

-- 


Reply via email to