forked from enlightenment/efl
elm_mapbuf.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
fce66c4296
commit
e5e105342f
|
@ -288,8 +288,7 @@ _elm_mapbuf_smart_content_unset(Eo *obj, void *_pd, va_list *list)
|
|||
evas_object_data_del(content, "_elm_leaveme");
|
||||
evas_object_color_set(wd->resize_obj, 0, 0, 0, 0);
|
||||
if (ret) *ret = content;
|
||||
if (sd->idler) ecore_idler_del(sd->idler);
|
||||
sd->idler = NULL;
|
||||
ELM_SAFE_FREE(sd->idler, ecore_idler_del);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -484,8 +483,7 @@ _auto_set(Eo *obj, void *_pd, va_list *list)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (sd->idler) ecore_idler_del(sd->idler);
|
||||
sd->idler = NULL;
|
||||
ELM_SAFE_FREE(sd->idler, ecore_idler_del);
|
||||
|
||||
_internal_enable_set(obj, _pd, EINA_FALSE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue