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.
This commit is contained in:
Daniel Juyung Seo 2013-05-29 20:55:19 +09:00
parent 37511fda1d
commit 7154e2c916
1 changed files with 2 additions and 6 deletions

View File

@ -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);