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.
This commit is contained in:
Daniel Juyung Seo 2013-05-29 20:22:54 +09:00
parent b0f793baa7
commit 7eef2d1892
1 changed files with 2 additions and 4 deletions

View File

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