Mercurial > dovecot > core-2.2
changeset 13579:f41a3dd03be2
ioloop: Memory leak fix on ioloop destroy.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 02 Oct 2011 16:33:51 +0300 |
parents | 7f7724f28d78 |
children | b7995a25c052 |
files | src/lib/ioloop.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/ioloop.c Sun Oct 02 16:32:59 2011 +0300 +++ b/src/lib/ioloop.c Sun Oct 02 16:33:51 2011 +0300 @@ -474,6 +474,9 @@ if (ioloop->handler_context != NULL) io_loop_handler_deinit(ioloop); + if (ioloop->cur_ctx != NULL) + io_loop_context_deactivate(ioloop->cur_ctx); + /* ->prev won't work unless loops are destroyed in create order */ i_assert(ioloop == current_ioloop); current_ioloop = current_ioloop->prev;