From c01655aa3ffed339cf485d162b24fad88b116b30 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 15 Dec 2011 12:44:44 +0530 Subject: Fix a crash in pdf_drag_drop. Ref the objects while cloning format_html. --- mail/em-format-html.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mail/em-format-html.c b/mail/em-format-html.c index 55f7aa9841..706de09248 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -689,11 +689,12 @@ em_format_html_clone_sync (CamelFolder *folder, struct _format_msg *m; m = mail_msg_new (&efh_format_info); - m->format = efh; - m->format_source = source; - m->folder = folder; + m->format = g_object_ref (efh); + if (source) + m->format_source = g_object_ref (source); + m->folder = g_object_ref (folder); m->uid = g_strdup (uid); - m->message = msg; + m->message = g_object_ref (msg); efh_format_helper (m, FALSE); efh_format_free (m); -- cgit v1.2.3