aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2011-12-15 15:14:44 +0800
committerChenthill Palanisamy <pchenthill@novell.com>2011-12-15 15:18:26 +0800
commitc01655aa3ffed339cf485d162b24fad88b116b30 (patch)
tree5d006771bc9b8f1345662960db6fadb1389aa5c8 /mail
parentd300de403de5b9b2d3c2c2f9d371f59859eeaf8c (diff)
downloadgsoc2013-evolution-c01655aa3ffed339cf485d162b24fad88b116b30.tar
gsoc2013-evolution-c01655aa3ffed339cf485d162b24fad88b116b30.tar.gz
gsoc2013-evolution-c01655aa3ffed339cf485d162b24fad88b116b30.tar.bz2
gsoc2013-evolution-c01655aa3ffed339cf485d162b24fad88b116b30.tar.lz
gsoc2013-evolution-c01655aa3ffed339cf485d162b24fad88b116b30.tar.xz
gsoc2013-evolution-c01655aa3ffed339cf485d162b24fad88b116b30.tar.zst
gsoc2013-evolution-c01655aa3ffed339cf485d162b24fad88b116b30.zip
Fix a crash in pdf_drag_drop. Ref the objects while cloning format_html.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-format-html.c9
1 files 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);