aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-08-13 06:06:52 +0800
committerDan Winship <danw@src.gnome.org>2000-08-13 06:06:52 +0800
commitffc1f6b79e3857a391c68bfc3c8241d11ae9166c (patch)
tree15fc7ab87a177268b74780df556635506276b2bc
parent6d313c9f852aa608b6e841e2ae42ab345cf6bc4b (diff)
downloadgsoc2013-evolution-ffc1f6b79e3857a391c68bfc3c8241d11ae9166c.tar.gz
gsoc2013-evolution-ffc1f6b79e3857a391c68bfc3c8241d11ae9166c.tar.zst
gsoc2013-evolution-ffc1f6b79e3857a391c68bfc3c8241d11ae9166c.zip
Don't leak the transport.
* mail-ops.c (do_send_mail): Don't leak the transport. svn path=/trunk/; revision=4784
-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;