From 1204a5f96b98a4b7ee4fe5b82c09059206aacd92 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Wed, 12 Dec 2007 17:11:18 +0000 Subject: [PATCH] Fix leak in modest-tny-msg pmo-trunk-r3903 --- src/modest-tny-msg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modest-tny-msg.c b/src/modest-tny-msg.c index 263b859..63dfd02 100644 --- a/src/modest-tny-msg.c +++ b/src/modest-tny-msg.c @@ -101,6 +101,8 @@ modest_tny_msg_new (const gchar* mailto, const gchar* from, const gchar *cc, /* Add attachments */ if (attachments) add_attachments (TNY_MIME_PART (new_msg), attachments, FALSE); + if (header) + g_object_unref(header); return new_msg; } @@ -150,6 +152,8 @@ modest_tny_msg_new_html_plain (const gchar* mailto, const gchar* from, const gch /* Add attachments */ add_attachments (TNY_MIME_PART (new_msg), attachments, FALSE); add_images (new_msg, images); + if (header) + g_object_unref(header); return new_msg; } -- 1.7.9.5