aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-21 02:37:36 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-21 02:37:36 +0800
commit6043cbbc55d612e29b9d0fa5f10459f06896adcf (patch)
tree00dbd5eb1c3feca28c60b212e86fdb137e612cc3 /camel
parent95697142edb4d62c7f82cb915857597f095a0155 (diff)
downloadgsoc2013-evolution-6043cbbc55d612e29b9d0fa5f10459f06896adcf.tar
gsoc2013-evolution-6043cbbc55d612e29b9d0fa5f10459f06896adcf.tar.gz
gsoc2013-evolution-6043cbbc55d612e29b9d0fa5f10459f06896adcf.tar.bz2
gsoc2013-evolution-6043cbbc55d612e29b9d0fa5f10459f06896adcf.tar.lz
gsoc2013-evolution-6043cbbc55d612e29b9d0fa5f10459f06896adcf.tar.xz
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')
-rw-r--r--camel/camel-data-wrapper.c2
-rw-r--r--camel/camel-stream-fs.c8
-rw-r--r--camel/camel-stream-fs.h2
-rw-r--r--camel/camel-stream.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c
index 579f32f023..69ddbb4bdb 100644
--- a/camel/camel-data-wrapper.c
+++ b/camel/camel-data-wrapper.c
@@ -106,7 +106,7 @@ _finalize (GtkObject *object)
CamelDataWrapper *camel_data_wrapper = CAMEL_DATA_WRAPPER (object);
CAMEL_LOG_FULL_DEBUG ("Entering CamelDataWrapper::finalize\n");
- printf ("CamelDataWrapper::finalize, finalizing object %p\n", object);
+ CAMEL_LOG_FULL_DEBUG ("CamelDataWrapper::finalize, finalizing object %p\n", object);
if (camel_data_wrapper->mime_type)
gmime_content_field_unref (camel_data_wrapper->mime_type);
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);
diff --git a/camel/camel-stream-fs.h b/camel/camel-stream-fs.h
index 9f295cdb4a..86d955cc1c 100644
--- a/camel/camel-stream-fs.h
+++ b/camel/camel-stream-fs.h
@@ -70,7 +70,7 @@ GtkType camel_stream_fs_get_type (void);
/* public methods */
-CamelStream *camel_stream_fs_new_with_name (gchar *name, CamelStreamFsMode mode);
+CamelStream *camel_stream_fs_new_with_name (const gchar *name, CamelStreamFsMode mode);
CamelStream *camel_stream_fs_new_with_fd (int fd);
#ifdef __cplusplus
diff --git a/camel/camel-stream.c b/camel/camel-stream.c
index 18ff5db8f5..2c0a85f5ff 100644
--- a/camel/camel-stream.c
+++ b/camel/camel-stream.c
@@ -24,7 +24,7 @@
#include <config.h>
#include "camel-stream.h"
-static CamelStreamClass *parent_class = NULL;
+static GtkObjectClass *parent_class = NULL;
/* Returns the class for a CamelMimeMessage */