diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 1999-08-21 02:37:36 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-08-21 02:37:36 +0800 |
commit | 6043cbbc55d612e29b9d0fa5f10459f06896adcf (patch) | |
tree | 00dbd5eb1c3feca28c60b212e86fdb137e612cc3 /camel/camel-stream-fs.c | |
parent | 95697142edb4d62c7f82cb915857597f095a0155 (diff) | |
download | gsoc2013-evolution-6043cbbc55d612e29b9d0fa5f10459f06896adcf.tar.gz gsoc2013-evolution-6043cbbc55d612e29b9d0fa5f10459f06896adcf.tar.zst gsoc2013-evolution-6043cbbc55d612e29b9d0fa5f10459f06896adcf.zip |
name parameter is const. This fixes a bug in destroy ()
1999-08-20 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/camel-stream-fs.c (camel_stream_fs_new_with_name):
name parameter is const. This fixes a bug in destroy ()
svn path=/trunk/; revision=1135
Diffstat (limited to 'camel/camel-stream-fs.c')
-rw-r--r-- | camel/camel-stream-fs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/camel/camel-stream-fs.c b/camel/camel-stream-fs.c index 679ee83035..e96250bd29 100644 --- a/camel/camel-stream-fs.c +++ b/camel/camel-stream-fs.c @@ -52,7 +52,7 @@ camel_stream_fs_class_init (CamelStreamFsClass *camel_stream_fs_class) CamelStreamClass *camel_stream_class = CAMEL_STREAM_CLASS (camel_stream_fs_class); GtkObjectClass *gtk_object_class = GTK_OBJECT_CLASS (camel_stream_fs_class); - parent_class = gtk_type_class (gtk_object_get_type ()); + parent_class = gtk_type_class (camel_stream_get_type ()); /* virtual method definition */ @@ -111,7 +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"); } @@ -132,7 +132,7 @@ _finalize (GtkObject *object) CamelStream * -camel_stream_fs_new_with_name (gchar *name, CamelStreamFsMode mode) +camel_stream_fs_new_with_name (const gchar *name, CamelStreamFsMode mode) { struct stat s; int v, fd; @@ -165,7 +165,7 @@ camel_stream_fs_new_with_name (gchar *name, CamelStreamFsMode mode) } stream_fs = CAMEL_STREAM_FS (camel_stream_fs_new_with_fd (fd)); - stream_fs->name = name; + stream_fs->name = g_strdup (name); return CAMEL_STREAM (stream_fs); |