forked from enlightenment/efl
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:
parent
37511fda1d
commit
7154e2c916
|
@ -387,10 +387,7 @@ _elm_icon_smart_file_set(Eo *obj, void *_pd, va_list *list)
|
||||||
|
|
||||||
#ifdef ELM_EFREET
|
#ifdef ELM_EFREET
|
||||||
if (!sd->freedesktop.use)
|
if (!sd->freedesktop.use)
|
||||||
{
|
ELM_SAFE_FREE(sd->stdicon, eina_stringshare_del);
|
||||||
if (sd->stdicon) eina_stringshare_del(sd->stdicon);
|
|
||||||
sd->stdicon = NULL;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!sd->is_video)
|
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_NULL_RETURN(img);
|
||||||
EINA_SAFETY_ON_TRUE_RETURN(!size);
|
EINA_SAFETY_ON_TRUE_RETURN(!size);
|
||||||
eina_stringshare_del(sd->stdicon);
|
ELM_SAFE_FREE(sd->stdicon, eina_stringshare_del);
|
||||||
sd->stdicon = NULL;
|
|
||||||
|
|
||||||
_edje_signals_free(sd);
|
_edje_signals_free(sd);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue