[evolution] Fix a crash in pdf_drag_drop. Ref the objects while cloning format_html.
- From: Chenthill Palanisamy <pchen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Fix a crash in pdf_drag_drop. Ref the objects while cloning format_html.
- Date: Thu, 15 Dec 2011 07:18:52 +0000 (UTC)
commit c01655aa3ffed339cf485d162b24fad88b116b30
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Thu Dec 15 12:44:44 2011 +0530
Fix a crash in pdf_drag_drop. Ref the objects while cloning format_html.
mail/em-format-html.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 55f7aa9..706de09 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]