From c6747ac9b43fa9e9beb9b5c5dfb2ba25c1e8cbb1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 5 Dec 2000 23:47:50 +0000 Subject: If the data wrapper fails to be written to the stream, unref it and the 2000-12-05 Jeffrey Stedfast * providers/smtp/camel-smtp-transport.c (smtp_data): If the data wrapper fails to be written to the stream, unref it and the filters before returning. svn path=/trunk/; revision=6804 --- camel/providers/smtp/camel-smtp-transport.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'camel/providers/smtp') diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c index 748fc3010d..a4115c60e8 100644 --- a/camel/providers/smtp/camel-smtp-transport.c +++ b/camel/providers/smtp/camel-smtp-transport.c @@ -653,6 +653,11 @@ smtp_data (CamelSmtpTransport *transport, CamelMedium *message, gboolean has_8bi _("DATA send timed out: message termination: " "%s: mail not sent"), g_strerror (errno)); + + camel_stream_filter_remove (filtered_stream, lwid); + camel_stream_filter_remove (filtered_stream, crlfid); + camel_object_unref (CAMEL_OBJECT (filtered_stream)); + return FALSE; } -- cgit v1.2.3