elm: Removed unnecessary null check for eina_hash_free and

elm_widget_stringlist_free.
This commit is contained in:
Daniel Juyung Seo 2014-01-22 11:13:30 +09:00
parent 5353aa863c
commit 3e45b920ee
2 changed files with 3 additions and 5 deletions

View File

@ -56,12 +56,10 @@ _elm_module_shutdown(void)
EINA_LIST_FREE(tl, m) _elm_module_del(m); EINA_LIST_FREE(tl, m) _elm_module_del(m);
eina_hash_free(modules); ELM_SAFE_FREE(modules, eina_hash_free);
modules = NULL;
} }
if (modules_as) eina_hash_free(modules_as); ELM_SAFE_FREE(modules_as, eina_hash_free);
modules_as = NULL;
} }
void void

View File

@ -354,7 +354,7 @@ _elm_slideshow_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
const char *layout; const char *layout;
elm_slideshow_clear(obj); elm_slideshow_clear(obj);
if (sd->transitions) elm_widget_stringlist_free(sd->transitions); elm_widget_stringlist_free(sd->transitions);
ecore_timer_del(sd->timer); ecore_timer_del(sd->timer);
EINA_LIST_FREE(sd->layout.list, layout) EINA_LIST_FREE(sd->layout.list, layout)