aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index 14b8106314..ab4c44b82f 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -542,8 +542,10 @@ write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
#endif
count = camel_data_wrapper_write_to_stream (content, stream);
- if (filter_stream)
+ if (filter_stream) {
+ camel_stream_flush((CamelStream *)filter_stream);
gtk_object_unref((GtkObject *)filter_stream);
+ }
if (count == -1)
return -1;
total += count;