[dovecot-cvs] dovecot/src/lib module-dir.c,1.19.2.1,1.19.2.2

tss at dovecot.org tss at dovecot.org
Sat Nov 4 19:49:15 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv30245

Modified Files:
      Tag: branch_1_0
	module-dir.c 
Log Message:
Call deinit() for all modules first before unloading them.



Index: module-dir.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/module-dir.c,v
retrieving revision 1.19.2.1
retrieving revision 1.19.2.2
diff -u -d -r1.19.2.1 -r1.19.2.2
--- module-dir.c	16 Jun 2006 10:15:55 -0000	1.19.2.1
+++ module-dir.c	4 Nov 2006 19:49:13 -0000	1.19.2.2
@@ -266,6 +266,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);



More information about the dovecot-cvs mailing list