deinit() function is now checked and saved when loading module. Unloading

modules that had module_deinit() function (not module_core_deinit()) wasn't
called before. Also, error message wasn't printed if module didn't have the
_core part and wasn't really irssi module.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1882 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-21 16:23:43 +00:00 committed by cras
commit 388d2e1f44
2 changed files with 15 additions and 17 deletions

View file

@ -36,6 +36,7 @@ typedef struct {
MODULE_REC *root;
char *name;
char *defined_module_name;
void (*module_deinit) (void);
#ifdef HAVE_GMODULE
GModule *gmodule; /* static, if NULL */