From ffc1f6b79e3857a391c68bfc3c8241d11ae9166c Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 12 Aug 2000 22:06:52 +0000 Subject: Don't leak the transport. * mail-ops.c (do_send_mail): Don't leak the transport. svn path=/trunk/; revision=4784 --- mail/ChangeLog | 2 ++ mail/mail-ops.c | 1 + 2 files changed, 3 insertions(+) (limited to 'mail') 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 + * 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; -- cgit