From 6881fd1bf710f0ce0bd55f9975855bb23622077a Mon Sep 17 00:00:00 2001 From: bertrand Date: Tue, 24 Aug 1999 21:01:10 +0000 Subject: new class. Will handle all sort of information media (Mime mail messages, 1999-08-24 bertrand * camel/camel-medium.c (camel_medium_class_init): new class. Will handle all sort of information media (Mime mail messages, Lotus Notes mail messages, postit notes, faxes, who knows .... :) CamelMimePart will inherit from it. * camel/camel-mime-part.c (_set_disposition): (_set_description): description and disposition parameters are now const. * camel/gmime-content-field.c (gmime_content_field_free): added assertion code. * camel/providers/MH/camel-mh-folder.c (_get_message): uses buffered stream. * camel/camel-stream-buffered-fs.c: new stream to accelerate file ops. Thanks to jwz, I've decided to add a level of abstraction to Camel. In the future, it should be able to handle other mail systems, but also non-mail information vehicles. Enough for today. Roller time! svn path=/trunk/; revision=1140 --- camel/gmime-content-field.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'camel/gmime-content-field.c') diff --git a/camel/gmime-content-field.c b/camel/gmime-content-field.c index a499ec6a9e..a92fd63511 100644 --- a/camel/gmime-content-field.c +++ b/camel/gmime-content-field.c @@ -74,9 +74,10 @@ _free_parameter (gpointer name, gpointer value, gpointer user_data) void gmime_content_field_free (GMimeContentField *content_field) { + g_assert (content_field); g_hash_table_foreach (content_field->parameters, _free_parameter, NULL); - g_free (content_field->type); - g_free (content_field->subtype); + if (content_field->type) g_free (content_field->type); + if (content_field->subtype) g_free (content_field->subtype); g_hash_table_destroy (content_field->parameters); g_free (content_field); } -- cgit