aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-medium.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-26 04:42:59 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-26 04:42:59 +0800
commita76dccf18b6d8b854280031dbcc9187cd5744958 (patch)
tree9db6ab52836f5226e5b3846c1680c828d5f00800 /camel/camel-medium.c
parentb42d3101ab747c315952182d78667a58899a1a35 (diff)
downloadgsoc2013-evolution-a76dccf18b6d8b854280031dbcc9187cd5744958.tar.gz
gsoc2013-evolution-a76dccf18b6d8b854280031dbcc9187cd5744958.tar.zst
gsoc2013-evolution-a76dccf18b6d8b854280031dbcc9187cd5744958.zip
now descend from CamelMedium.
1999-08-25 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-mime-part.c: now descend from CamelMedium. * tests/test1.c (main): all headers must be strdup'ed (main): unref created objects svn path=/trunk/; revision=1143
Diffstat (limited to 'camel/camel-medium.c')
-rw-r--r--camel/camel-medium.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/camel/camel-medium.c b/camel/camel-medium.c
index b6a3ffc9fc..a8d7103237 100644
--- a/camel/camel-medium.c
+++ b/camel/camel-medium.c
@@ -61,6 +61,9 @@ camel_medium_class_init (CamelMediumClass *camel_medium_class)
camel_medium_class->remove_header = _remove_header;
camel_medium_class->get_header = _get_header;
+ camel_medium_class->set_content_object = _set_content_object;
+ camel_medium_class->get_content_object = _get_content_object;
+
/* virtual method overload */
@@ -76,6 +79,7 @@ camel_medium_init (gpointer object, gpointer klass)
CamelMedium *camel_medium = CAMEL_MEDIUM (object);
camel_medium->headers = g_hash_table_new (g_str_hash, g_str_equal);
+ camel_medium->content = NULL;
}
@@ -115,6 +119,7 @@ _finalize (GtkObject *object)
CAMEL_LOG_FULL_DEBUG ("Entering CamelMedium::finalize\n");
if (medium->headers) {
+#warning Free hash table elements
g_hash_table_destroy (medium->headers);
}