Set functions to null since we close the handle

SVN revision: 17066
This commit is contained in:
sebastid 2005-09-29 14:11:03 +00:00 committed by sebastid
parent 69f5ef076d
commit 50fc338b77
1 changed files with 6 additions and 1 deletions

View File

@ -158,7 +158,12 @@ e_module_new(char *name)
snprintf(title, sizeof(title), _("Enlightenment %s Module"), _(m->api->name));
_e_module_dialog_disable_show(title, body, m);
m->api = NULL;
m->func.init = NULL;
m->func.shutdown = NULL;
m->func.save = NULL;
m->func.info = NULL;
m->func.about = NULL;
dlclose(m->handle);
m->handle = NULL;
m->error = 1;