diff options
author | Michael Meeks <mmeeks@src.gnome.org> | 2000-03-28 05:33:34 +0800 |
---|---|---|
committer | Michael Meeks <mmeeks@src.gnome.org> | 2000-03-28 05:33:34 +0800 |
commit | 7b379b8f3b59bafc137054a66ffd40a1e5908971 (patch) | |
tree | b0340aaf3844743e209efa6559aafb429e3cea90 /camel/camel-mime-part.c | |
parent | e3219d0bb2d2b1baac480b95b57bfeacf8afa777 (diff) | |
download | gsoc2013-evolution-7b379b8f3b59bafc137054a66ffd40a1e5908971.tar.gz 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/camel-mime-part.c')
-rw-r--r-- | camel/camel-mime-part.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index 7214738a61..28f313585d 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -243,7 +243,6 @@ my_finalize (GtkObject *object) CAMEL_LOG_FULL_DEBUG ("Entering CamelMimePart::finalize\n"); g_free (mime_part->description); - gmime_content_field_unref (mime_part->disposition); g_free (mime_part->content_id); g_free (mime_part->content_MD5); string_list_free (mime_part->content_languages); @@ -320,11 +319,13 @@ my_set_disposition (CamelMimePart *mime_part, const gchar *disposition) { #warning Do not use MimeContentfield here !!! - if (mime_part->disposition) g_free ((mime_part->disposition)->type); - g_free (mime_part->disposition); + if (mime_part->disposition) { + g_free (mime_part->disposition->type); + g_free (mime_part->disposition); + } mime_part->disposition = g_new0 (GMimeContentField,1); - (mime_part->disposition)->type = g_strdup (disposition); + mime_part->disposition->type = g_strdup (disposition); } |