Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6082:d62bddb414ef HEAD
ref/unref stream when parsing it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 18 Jul 2007 09:36:04 +0300 |
parents | c23d396f84b2 |
children | 1b0ef7a74448 |
files | src/lib-mail/message-parser.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-mail/message-parser.c Wed Jul 18 09:26:35 2007 +0300 +++ b/src/lib-mail/message-parser.c Wed Jul 18 09:36:04 2007 +0300 @@ -679,6 +679,7 @@ ctx->parts = ctx->part = part_pool == NULL ? NULL : p_new(part_pool, struct message_part, 1); ctx->parse_next_block = parse_next_header_init; + i_stream_ref(input); return ctx; } @@ -702,6 +703,7 @@ struct message_part *parts = ctx->parts; *_ctx = NULL; + i_stream_unref(&ctx->input); pool_unref(ctx->parser_pool); return parts; }