Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4747:e46eb913bcee HEAD
Call deinit() for all modules first before unloading them.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 04 Nov 2006 21:49:15 +0200 |
parents | 5b92d300941f |
children | 5fb199ed254a |
files | src/lib/module-dir.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/module-dir.c Sat Nov 04 20:48:11 2006 +0200 +++ b/src/lib/module-dir.c Sat Nov 04 21:49:15 2006 +0200 @@ -265,6 +265,10 @@ { struct module *module, *next; + /* Call all modules' deinit() first, so that they may still call each + others' functions. */ + module_dir_deinit(*modules); + for (module = *modules; module != NULL; module = next) { next = module->next; module_free(module);