diff options
author | Daniel Juyung Seo <seojuyung2@gmail.com> | 2014-01-22 11:13:30 +0900 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2014-01-22 11:13:30 +0900 |
commit | ac5d368b190eaa7920d43bd9253adf5c13e84340 (patch) | |
tree | 4863336f4eb04b5588441986b1b239fa0612bce3 | |
parent | f873373e587b009169679d970e6712d07c3521b9 (diff) |
elm: Removed unnecessary null check for eina_hash_free and
elm_widget_stringlist_free.
-rw-r--r-- | src/lib/elm_module.c | 6 | ||||
-rw-r--r-- | 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 f0e0903a0..777ea6c6f 100644 --- a/src/lib/elm_module.c +++ b/src/lib/elm_module.c | |||
@@ -56,12 +56,10 @@ _elm_module_shutdown(void) | |||
56 | 56 | ||
57 | EINA_LIST_FREE(tl, m) _elm_module_del(m); | 57 | EINA_LIST_FREE(tl, m) _elm_module_del(m); |
58 | 58 | ||
59 | eina_hash_free(modules); | 59 | ELM_SAFE_FREE(modules, eina_hash_free); |
60 | modules = NULL; | ||
61 | } | 60 | } |
62 | 61 | ||
63 | if (modules_as) eina_hash_free(modules_as); | 62 | ELM_SAFE_FREE(modules_as, eina_hash_free); |
64 | modules_as = NULL; | ||
65 | } | 63 | } |
66 | 64 | ||
67 | void | 65 | void |
diff --git a/src/lib/elm_slideshow.c b/src/lib/elm_slideshow.c index 746f1de6b..f2eb4d285 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) | |||
354 | const char *layout; | 354 | const char *layout; |
355 | 355 | ||
356 | elm_slideshow_clear(obj); | 356 | elm_slideshow_clear(obj); |
357 | if (sd->transitions) elm_widget_stringlist_free(sd->transitions); | 357 | elm_widget_stringlist_free(sd->transitions); |
358 | ecore_timer_del(sd->timer); | 358 | ecore_timer_del(sd->timer); |
359 | 359 | ||
360 | EINA_LIST_FREE(sd->layout.list, layout) | 360 | EINA_LIST_FREE(sd->layout.list, layout) |