From a76dccf18b6d8b854280031dbcc9187cd5744958 Mon Sep 17 00:00:00 2001 From: bertrand Date: Wed, 25 Aug 1999 20:42:59 +0000 Subject: now descend from CamelMedium. 1999-08-25 bertrand * 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 --- camel/camel-medium.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'camel/camel-medium.c') 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); } -- cgit