module-dir.c (dovecot-2.3.16) | : | module-dir.c (dovecot-2.3.17) | ||
---|---|---|---|---|
skipping to change at line 578 | skipping to change at line 578 | |||
if (module->deinit != NULL && module->initialized) { | if (module->deinit != NULL && module->initialized) { | |||
rev[count-i-1] = module; | rev[count-i-1] = module; | |||
i++; | i++; | |||
} | } | |||
module = module->next; | module = module->next; | |||
} | } | |||
for (i = 0; i < count; i++) { | for (i = 0; i < count; i++) { | |||
module = rev[i]; | module = rev[i]; | |||
module->deinit(); | T_BEGIN { | |||
module->deinit(); | ||||
} T_END; | ||||
module->initialized = FALSE; | module->initialized = FALSE; | |||
} | } | |||
} T_END; | } T_END; | |||
} | } | |||
void module_dir_unload(struct module **modules) | void module_dir_unload(struct module **modules) | |||
{ | { | |||
struct module *module, *next; | struct module *module, *next; | |||
/* Call all modules' deinit() first, so that they may still call each | /* Call all modules' deinit() first, so that they may still call each | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 3 lines changed or added |