stringshare_replace in fwin: it exists for a reason, stop using macros ffs

This commit is contained in:
Mike Blumenkrantz 2014-03-28 09:43:05 -04:00
parent 32e928b55b
commit 5503e29169
1 changed files with 4 additions and 6 deletions

View File

@ -1730,12 +1730,10 @@ _e_fwin_changed(void *data,
} }
else else
{ {
#define RELEASE_STR(x) if (x) {eina_stringshare_del(x); (x) = NULL; } eina_stringshare_replace(&fwin->wallpaper_file, NULL);
RELEASE_STR(fwin->wallpaper_file); eina_stringshare_replace(&fwin->overlay_file, NULL);
RELEASE_STR(fwin->overlay_file); eina_stringshare_replace(&fwin->scrollframe_file, NULL);
RELEASE_STR(fwin->scrollframe_file); eina_stringshare_replace(&fwin->theme_file, NULL);
RELEASE_STR(fwin->theme_file);
#undef RELEASE_STR
} }
if (fwin->under_obj) evas_object_hide(fwin->under_obj); if (fwin->under_obj) evas_object_hide(fwin->under_obj);
if (fwin->wallpaper_file) if (fwin->wallpaper_file)