From 08752e1b538c47f74714199eed76e9cda61c256f Mon Sep 17 00:00:00 2001 From: bertrand Date: Tue, 17 Aug 1999 17:44:00 +0000 Subject: return the number of bytes read. How can this have ever worked ? 1999-08-17 bertrand * camel/camel-stream.c (camel_stream_read): return the number of bytes read. How can this have ever worked ? (camel_stream_flush): don't return anything. * camel/gmime-utils.c (get_header_table_from_stream): mem leak fixed. + various other mem leaks. svn path=/trunk/; revision=1120 --- tests/test2.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/test2.c b/tests/test2.c index c120d558d6..5b4e319c5d 100644 --- a/tests/test2.c +++ b/tests/test2.c @@ -32,10 +32,14 @@ main (int argc, char**argv) camel_data_wrapper_construct_from_stream ( CAMEL_DATA_WRAPPER (message), input_stream); camel_stream_close (input_stream); + gtk_object_unref (GTK_OBJECT (input_stream)); output_stream = camel_stream_fs_new_with_name ("mail2.test", CAMEL_STREAM_FS_WRITE); camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), output_stream); camel_stream_close (output_stream); + gtk_object_unref (GTK_OBJECT (output_stream)); + + gtk_object_unref (GTK_OBJECT (message)); return 0; -- cgit