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:
d1d27fc
)
elm module: Added guard code.
author
seoz
<seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Jul 2011 14:50:50 +0000
(14:50 +0000)
committer
seoz
<seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Jul 2011 14:50:50 +0000
(14:50 +0000)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@61120
7cbeb6ba
-43b4-40fd-8cce-
4c39aea84d33
src/lib/elm_module.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_module.c
b/src/lib/elm_module.c
index
beb7161
..
9e65d82
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;
}
}