diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 1999-08-18 01:44:00 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-08-18 01:44:00 +0800 |
commit | 08752e1b538c47f74714199eed76e9cda61c256f (patch) | |
tree | 225c875e5cdf011966498dd0540c75066609fe29 /camel/camel-stream-fs.c | |
parent | 8efa5bea5494312b98c70c347cc7df84564eb86f (diff) | |
download | gsoc2013-evolution-08752e1b538c47f74714199eed76e9cda61c256f.tar gsoc2013-evolution-08752e1b538c47f74714199eed76e9cda61c256f.tar.gz gsoc2013-evolution-08752e1b538c47f74714199eed76e9cda61c256f.tar.bz2 gsoc2013-evolution-08752e1b538c47f74714199eed76e9cda61c256f.tar.lz gsoc2013-evolution-08752e1b538c47f74714199eed76e9cda61c256f.tar.xz gsoc2013-evolution-08752e1b538c47f74714199eed76e9cda61c256f.tar.zst gsoc2013-evolution-08752e1b538c47f74714199eed76e9cda61c256f.zip |
return the number of bytes read. How can this have ever worked ?
1999-08-17 bertrand <Bertrand.Guiheneuf@aful.org>
* 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
Diffstat (limited to 'camel/camel-stream-fs.c')
-rw-r--r-- | camel/camel-stream-fs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/camel/camel-stream-fs.c b/camel/camel-stream-fs.c index 340a87606c..679ee83035 100644 --- a/camel/camel-stream-fs.c +++ b/camel/camel-stream-fs.c @@ -66,7 +66,7 @@ camel_stream_fs_class_init (CamelStreamFsClass *camel_stream_fs_class) camel_stream_class->seek = _seek; gtk_object_class->finalize = _finalize; - gtk_object_class->finalize = _destroy; + gtk_object_class->destroy = _destroy; } @@ -111,6 +111,7 @@ _destroy (GtkObject *object) CAMEL_LOG_FULL_DEBUG ( " Full error text is : %s\n", strerror(errno)); } GTK_OBJECT_CLASS (parent_class)->destroy (object); + g_free (object); CAMEL_LOG_FULL_DEBUG ("Leaving CamelStreamFs::destroy\n"); } @@ -194,10 +195,12 @@ camel_stream_fs_new_with_fd (int fd) static gint _read (CamelStream *stream, gchar *buffer, gint n) { - int v; + gint v; do { v = read ( (CAMEL_STREAM_FS (stream))->fd, buffer, n); } while (v == -1 && errno == EINTR); + if (v<0) + CAMEL_LOG_FULL_DEBUG ("CamelStreamFs::read v=%d\n", v); return v; } |