aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gmime-content-field.c
diff options
context:
space:
mode:
authorMichael Meeks <mmeeks@src.gnome.org>2000-03-28 05:33:34 +0800
committerMichael Meeks <mmeeks@src.gnome.org>2000-03-28 05:33:34 +0800
commit7b379b8f3b59bafc137054a66ffd40a1e5908971 (patch)
treeb0340aaf3844743e209efa6559aafb429e3cea90 /camel/gmime-content-field.c
parente3219d0bb2d2b1baac480b95b57bfeacf8afa777 (diff)
downloadgsoc2013-evolution-7b379b8f3b59bafc137054a66ffd40a1e5908971.tar
gsoc2013-evolution-7b379b8f3b59bafc137054a66ffd40a1e5908971.tar.gz
gsoc2013-evolution-7b379b8f3b59bafc137054a66ffd40a1e5908971.tar.bz2
gsoc2013-evolution-7b379b8f3b59bafc137054a66ffd40a1e5908971.tar.lz
gsoc2013-evolution-7b379b8f3b59bafc137054a66ffd40a1e5908971.tar.xz
gsoc2013-evolution-7b379b8f3b59bafc137054a66ffd40a1e5908971.tar.zst
gsoc2013-evolution-7b379b8f3b59bafc137054a66ffd40a1e5908971.zip
fix nastiness with mime dispositions ( at least for now )
svn path=/trunk/; revision=2195
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 7f93ae1db2..6788332753 100644
--- a/camel/gmime-content-field.c
+++ b/camel/gmime-content-field.c
@@ -52,7 +52,7 @@ gmime_content_field_new (const gchar *type, const gchar *subtype)
ctf = g_new (GMimeContentField, 1);
ctf->type = g_strdup (type);
ctf->subtype = g_strdup (subtype);
- ctf->parameters = g_hash_table_new (g_strcase_hash, g_strcase_equal);
+ ctf->parameters = g_hash_table_new (g_strcase_hash, g_strcase_equal);
ctf->ref = 1;
return ctf;
@@ -79,6 +79,8 @@ gmime_content_field_free (GMimeContentField *content_field)
{
if (!content_field) return;
+ g_assert (content_field->ref <= 0);
+
g_hash_table_foreach (content_field->parameters, _free_parameter, NULL);
g_free (content_field->type);
g_free (content_field->subtype);
@@ -293,7 +295,6 @@ void
gmime_content_field_construct_from_string (GMimeContentField *content_field, const gchar *string)
{
gint first, len;
- gchar *str;
gint i=0;
gchar *type, *subtype;
gchar *param_name, *param_value;