diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 1999-09-01 22:36:17 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-09-01 22:36:17 +0800 |
commit | 4ed34315759b8bb3b701133bcb704b5a4891100c (patch) | |
tree | 149574f5827f58f829b5485489547ba4727ef9a8 /camel/gmime-content-field.c | |
parent | f5be7984b2ea1a4c3591cc11090220c080216aec (diff) | |
download | gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar.gz gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar.bz2 gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar.lz gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar.xz gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.tar.zst gsoc2013-evolution-4ed34315759b8bb3b701133bcb704b5a4891100c.zip |
now use CamelRecipientTable
1999-09-01 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/camel-mime-message.c (_finalize):
(_add_recipient):
(_remove_recipient):
(_get_recipients): now use CamelRecipientTable
* camel/gmime-content-field.c:
(gmime_content_field_unref): test if object
to free is non void.
Still are some bugs in camel-recipient.c
svn path=/trunk/; revision=1152
Diffstat (limited to 'camel/gmime-content-field.c')
-rw-r--r-- | camel/gmime-content-field.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/gmime-content-field.c b/camel/gmime-content-field.c index d838c5c8de..536d15e82a 100644 --- a/camel/gmime-content-field.c +++ b/camel/gmime-content-field.c @@ -74,7 +74,8 @@ _free_parameter (gpointer name, gpointer value, gpointer user_data) void gmime_content_field_free (GMimeContentField *content_field) { - g_assert (content_field); + if (!content_field) return; + g_hash_table_foreach (content_field->parameters, _free_parameter, NULL); g_free (content_field->type); g_free (content_field->subtype); @@ -110,6 +111,8 @@ gmime_content_field_ref (GMimeContentField *content_field) void gmime_content_field_unref (GMimeContentField *content_field) { + if (!content_field) return; + content_field->ref -= 1; if (content_field->ref <= 0) gmime_content_field_free (content_field); |