diff options
Diffstat (limited to 'camel/gmime-content-field.c')
-rw-r--r-- | camel/gmime-content-field.c | 5 |
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); } |