From 7d21306087b675f3c9b358617445cc4510435f05 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 7 Sep 2001 21:34:47 +0000 Subject: Make sure to unref the mime filters when we finish with them. 2001-09-07 Jeffrey Stedfast * providers/smtp/camel-smtp-transport.c (smtp_data): Make sure to unref the mime filters when we finish with them. svn path=/trunk/; revision=12689 --- camel/providers/smtp/camel-smtp-transport.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camel/providers') diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c index a9290c41cb..000cdfe7f4 100644 --- a/camel/providers/smtp/camel-smtp-transport.c +++ b/camel/providers/smtp/camel-smtp-transport.c @@ -1000,6 +1000,8 @@ smtp_data (CamelSmtpTransport *transport, CamelMedium *message, gboolean has_8bi filtered_stream = camel_stream_filter_new_with_stream (transport->ostream); camel_stream_filter_add (filtered_stream, CAMEL_MIME_FILTER (bccfilter)); camel_stream_filter_add (filtered_stream, CAMEL_MIME_FILTER (crlffilter)); + camel_object_unref (CAMEL_OBJECT (bccfilter)); + camel_object_unref (CAMEL_OBJECT (crlffilter)); if (camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), CAMEL_STREAM (filtered_stream)) == -1) { camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, -- cgit v1.2.3