diff options
Diffstat (limited to 'camel/providers/sendmail')
-rw-r--r-- | camel/providers/sendmail/camel-sendmail-transport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/providers/sendmail/camel-sendmail-transport.c b/camel/providers/sendmail/camel-sendmail-transport.c index 15ba1f04e1..fad9d9681d 100644 --- a/camel/providers/sendmail/camel-sendmail-transport.c +++ b/camel/providers/sendmail/camel-sendmail-transport.c @@ -140,7 +140,8 @@ _send_internal (CamelMedium *message, char **argv, CamelException *ex) close (fd[0]); out = camel_stream_fs_new_with_fd (fd[1]); camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), out); - camel_stream_close (out); + camel_stream_flush (out); + gtk_object_unref (GTK_OBJECT (out)); /* Wait for sendmail to exit. */ while (waitpid (pid, &wstat, 0) == -1 && errno == EINTR) |