aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog2
-rw-r--r--mail/mail-ops.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 4af8bf32fa..2293762ea1 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,7 @@
2000-08-12 Dan Winship <danw@helixcode.com>
+ * mail-ops.c (do_send_mail): Don't leak the transport.
+
* mail-tools.c (mail_tool_get_folder_from_urlname): Don't ref the
store returned from camel_session_get_store. It's already reffed.
(mail_tool_get_root_of_store): Ditto.
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index ce99a75dad..db2230ccb5 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -323,6 +323,7 @@ do_send_mail (gpointer in_data, gpointer op_data, CamelException * ex)
mail_tool_send_via_transport (xport, CAMEL_MEDIUM (input->message),
ex);
+ camel_object_unref (CAMEL_OBJECT (xport));
if (camel_exception_is_set (ex))
return;