From: Daniel Juyung Seo Date: Wed, 9 Feb 2011 04:08:52 +0000 (+0900) Subject: [elm_module.c] Added NULL check code. X-Git-Tag: REL_I9200_20110603-1~382^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=883087f67ecd6603eef44a401d894cae36104a19;p=framework%2Fuifw%2Felementary.git [elm_module.c] Added NULL check code. --- diff --git a/src/lib/elm_module.c b/src/lib/elm_module.c index 3b7f5ff..16d83b7 100644 --- a/src/lib/elm_module.c +++ b/src/lib/elm_module.c @@ -133,8 +133,11 @@ _elm_module_load(Elm_Module *m) } else { - dlclose(m->handle); - m->handle = NULL; + if (m->handle) + { + dlclose(m->handle); + m->handle = NULL; + } return EINA_FALSE; } } @@ -158,8 +161,11 @@ _elm_module_load(Elm_Module *m) } else { - dlclose(m->handle); - m->handle = NULL; + if (m->handle) + { + dlclose(m->handle); + m->handle = NULL; + } return EINA_FALSE; } } @@ -177,7 +183,7 @@ _elm_module_unload(Elm_Module *m) eina_stringshare_del(m->bin_dir); if (m->shutdown_func) m->shutdown_func(m); if (m->api) free(m->api); - dlclose(m->handle); + if (m->handle) dlclose(m->handle); } Elm_Module *