# HG changeset patch # User Timo Sirainen # Date 1255015286 14400 # Node ID e20921f71bd0b7518091a4eb39b6d64359759703 # Parent f7f0bff8438ac34b491e68519cccaa7b2f199d8a lib-index: With >1 expunge handlers deinit was called with wrong sync_context. Currently there was only one expunge handler so this wasn't a real problem. diff -r f7f0bff8438a -r e20921f71bd0 src/lib-index/mail-index-sync-ext.c --- a/src/lib-index/mail-index-sync-ext.c Thu Oct 08 11:15:07 2009 -0400 +++ b/src/lib-index/mail-index-sync-ext.c Thu Oct 08 11:21:26 2009 -0400 @@ -66,8 +66,8 @@ eh = array_get(&ctx->expunge_handlers, &count); for (i = 0; i < count; i++) { - if (eh->sync_context != NULL) { - eh[i].handler(ctx, 0, NULL, eh->sync_context, + if (eh[i].sync_context != NULL) { + eh[i].handler(ctx, 0, NULL, eh[i].sync_context, eh[i].context); } }