diff options
author | NotZed <NotZed@HelixCode.com> | 2000-03-28 06:46:13 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-03-28 06:46:13 +0800 |
commit | 3ec585e1b510620a718d672ac682f2b467fe43c2 (patch) | |
tree | 4180aa792fed7b581183f72a886c38b204a84308 /camel/gmime-content-field.c | |
parent | 228a741d690e89815676af8f7d7cee8ef483a2f4 (diff) | |
download | gsoc2013-evolution-3ec585e1b510620a718d672ac682f2b467fe43c2.tar.gz gsoc2013-evolution-3ec585e1b510620a718d672ac682f2b467fe43c2.tar.zst gsoc2013-evolution-3ec585e1b510620a718d672ac682f2b467fe43c2.zip |
Unref the output_stream when done, close doesn't do it. (_append_message):
2000-03-27 NotZed <NotZed@HelixCode.com>
* providers/mbox/camel-mbox-folder.c (_append_message): Unref the
output_stream when done, close doesn't do it.
(_append_message): Clear all uid's from the appending messages, so
they are reassigned proper unique id's.
* gmime-utils.c (get_header_array_from_stream): Actually free the
header, it is copied elsewhere.
2000-03-26 NotZed <NotZed@HelixCode.com>
* providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev): Added
folder parameter to function. Fixed callers.
(index_message): Index a message as it is assigned a unique id.
* camel-mime-part.c (my_set_content_id): Make sure we malloc and
copy the content_id, otherwise *poof*
2000-03-25 NotZed <NotZed@HelixCode.com>
* camel-medium.c (_finalize): Another leak, unref the content if
finished with it.
* camel-recipient.c (camel_recipient_table_free): Plug another
memory leak - actually free the recipient table.
* camel-mime-message.c (_finalize): Plugged a memory leak with the
flags table.
* gmime-utils.c (_store_header_pair_from_string): A simpler, more
debuggable and functionally identical header extraction function.
2000-03-24 NotZed <NotZed@HelixCode.com>
* gmime-content-field.c (gmime_content_field_set_parameter):
Remove the hash table entry before freeing its key and data.
svn path=/trunk/; revision=2199
Diffstat (limited to 'camel/gmime-content-field.c')
-rw-r--r-- | camel/gmime-content-field.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/gmime-content-field.c b/camel/gmime-content-field.c index 6788332753..07924c1915 100644 --- a/camel/gmime-content-field.c +++ b/camel/gmime-content-field.c @@ -151,6 +151,7 @@ gmime_content_field_set_parameter (GMimeContentField *content_field, const gchar (gpointer *) &old_value); /** CHECK THAT : is normal to free pointers before insertion ? **/ if (attribute_exists) { + g_hash_table_remove(content_field->parameters, attribute); g_free (old_value); g_free (old_attribute); } @@ -369,6 +370,7 @@ gmime_content_field_construct_from_string (GMimeContentField *content_field, con if (i != first) param_value = g_strndup (string+first, i-first); else param_value = g_strdup (""); CAMEL_LOG_TRACE ( "GMimeContentField::construct_from_string, Found mime parameter \"%s\"=\"%s\"\n", param_name, param_value); + printf( "GMimeContentField::construct_from_string, Found mime parameter \"%s\"=\"%s\"\n", param_name, param_value); string_trim (param_value, " \t\"", STRING_TRIM_STRIP_TRAILING | STRING_TRIM_STRIP_LEADING); gmime_content_field_set_parameter (content_field, param_name, param_value); g_free (param_name); |