seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=ac5d368b190eaa7920d43bd9253adf5c13e84340

commit ac5d368b190eaa7920d43bd9253adf5c13e84340
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Wed Jan 22 11:13:30 2014 +0900

    elm: Removed unnecessary null check for eina_hash_free and
    elm_widget_stringlist_free.
---
 src/lib/elm_module.c    | 6 ++----
 src/lib/elm_slideshow.c | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/lib/elm_module.c b/src/lib/elm_module.c
index f0e0903..777ea6c 100644
--- a/src/lib/elm_module.c
+++ b/src/lib/elm_module.c
@@ -56,12 +56,10 @@ _elm_module_shutdown(void)
 
         EINA_LIST_FREE(tl, m) _elm_module_del(m);
 
-        eina_hash_free(modules);
-        modules = NULL;
+        ELM_SAFE_FREE(modules, eina_hash_free);
      }
 
-   if (modules_as) eina_hash_free(modules_as);
-   modules_as = NULL;
+   ELM_SAFE_FREE(modules_as, eina_hash_free);
 }
 
 void
diff --git a/src/lib/elm_slideshow.c b/src/lib/elm_slideshow.c
index 746f1de..f2eb4d2 100644
--- a/src/lib/elm_slideshow.c
+++ b/src/lib/elm_slideshow.c
@@ -354,7 +354,7 @@ _elm_slideshow_smart_del(Eo *obj, void *_pd, va_list *list 
EINA_UNUSED)
    const char *layout;
 
    elm_slideshow_clear(obj);
-   if (sd->transitions) elm_widget_stringlist_free(sd->transitions);
+   elm_widget_stringlist_free(sd->transitions);
    ecore_timer_del(sd->timer);
 
    EINA_LIST_FREE(sd->layout.list, layout)

-- 


Reply via email to