aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gmime-content-field.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-25 05:01:10 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-25 05:01:10 +0800
commit6881fd1bf710f0ce0bd55f9975855bb23622077a (patch)
treeb9a41edaab9742dbd6de39cf868b86905e6d26a7 /camel/gmime-content-field.c
parent86159a122623b0ef936f60e5040981bf0ab5d74e (diff)
downloadgsoc2013-evolution-6881fd1bf710f0ce0bd55f9975855bb23622077a.tar.gz
gsoc2013-evolution-6881fd1bf710f0ce0bd55f9975855bb23622077a.tar.zst
gsoc2013-evolution-6881fd1bf710f0ce0bd55f9975855bb23622077a.zip
new class. Will handle all sort of information media (Mime mail messages,
1999-08-24 bertrand <Bertrand.Guiheneuf@aful.org> * 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
Diffstat (limited to 'camel/gmime-content-field.c')
-rw-r--r--camel/gmime-content-field.c5
1 files changed, 3 insertions, 2 deletions
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);
}