aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
authorLauris Kaplinski <lauris@src.gnome.org>2000-09-01 10:40:45 +0800
committerLauris Kaplinski <lauris@src.gnome.org>2000-09-01 10:40:45 +0800
commite60c558b2552803e624a5cef4fccdd645f2021e0 (patch)
treec66ca681415ff55aa87ef64308bb3a01d516a4c5 /camel/camel-mime-part.c
parent71eb39b730cd190c690647d3806d567d55424026 (diff)
downloadgsoc2013-evolution-e60c558b2552803e624a5cef4fccdd645f2021e0.tar.gz
gsoc2013-evolution-e60c558b2552803e624a5cef4fccdd645f2021e0.tar.zst
gsoc2013-evolution-e60c558b2552803e624a5cef4fccdd645f2021e0.zip
Email should now display correctly in GtkHTML
svn path=/trunk/; revision=5154
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index 9dba5162a4..f372240347 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -544,8 +544,12 @@ write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
camel_object_unref((CamelObject *)crlf);
}
- camel_stream_filter_add(filter_stream, filter);
- camel_object_unref((CamelObject *)filter);
+
+ if (filter) {
+ camel_stream_filter_add(filter_stream, filter);
+ camel_object_unref((CamelObject *)filter);
+ }
+
stream = (CamelStream *)filter_stream;
}