diff options
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 0708fb3312..5af610aee3 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -507,13 +507,15 @@ mail_send_message(CamelMimeMessage *message, const char *destination, CamelFilte } xport = camel_session_get_transport (session, transport_url ? transport_url : destination, ex); + g_assert (CAMEL_OBJECT (xport)->ref_count == 1); g_free (transport_url); if (!xport) { g_free (sent_folder_uri); return; } - camel_transport_send (xport, (CamelMedium *)message, ex); + camel_transport_send (xport, CAMEL_MEDIUM (message), ex); + g_assert (CAMEL_OBJECT (xport)->ref_count == 1); camel_object_unref (CAMEL_OBJECT (xport)); if (camel_exception_is_set (ex)) { g_free (sent_folder_uri); |