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:
7f69c7f
)
after free(), assign NULL.
author
sangho park
<sangho.g.park@samsung.com>
Mon, 7 Mar 2011 11:28:13 +0000
(20:28 +0900)
committer
sangho park
<sangho.g.park@samsung.com>
Mon, 7 Mar 2011 11:28:13 +0000
(20:28 +0900)
src/lib/elm_module.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_module.c
b/src/lib/elm_module.c
index
16d83b7
..
4c27be9
100644
(file)
--- a/
src/lib/elm_module.c
+++ b/
src/lib/elm_module.c
@@
-181,9
+181,17
@@
_elm_module_unload(Elm_Module *m)
eina_stringshare_del(m->so_path);
eina_stringshare_del(m->data_dir);
eina_stringshare_del(m->bin_dir);
- if (m->shutdown_func) m->shutdown_func(m);
- if (m->api) free(m->api);
- if (m->handle) dlclose(m->handle);
+ if (m->api) {
+ free(m->api);
+ m->api = NULL;
+ }
+ if (m->handle) {
+ if (m->shutdown_func) m->shutdown_func(m);
+ dlclose(m->handle);
+ m->handle = NULL;
+ }
+ m->shutdown_func = NULL;
+ m->init_func = NULL;
}
Elm_Module *