projects
/
framework
/
uifw
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
449c403
)
[elm_module.c] Added NULL check code.
author
Daniel Juyung Seo
<juyung.seo@samsung.com>
Wed, 9 Feb 2011 04:08:52 +0000
(13:08 +0900)
committer
Daniel Juyung Seo
<juyung.seo@samsung.com>
Wed, 9 Feb 2011 04:08:52 +0000
(13:08 +0900)
src/lib/elm_module.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_module.c
b/src/lib/elm_module.c
index
3b7f5ff
..
16d83b7
100644
(file)
--- 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 *