diff options
Diffstat (limited to 'src/libmime/message.c')
-rw-r--r-- | src/libmime/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index f7b76640a..854b9e561 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1357,7 +1357,7 @@ mime_foreach_callback (GMimeObject * part, gpointer user_data) mime_part->raw_headers = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal); rspamd_mempool_add_destructor (task->task_pool, - (rspamd_mempool_destruct_t) g_hash_table_destroy, + (rspamd_mempool_destruct_t) g_hash_table_unref, mime_part->raw_headers); if (hdrs != NULL) { process_raw_headers (task, mime_part->raw_headers, @@ -1423,7 +1423,7 @@ mime_foreach_callback (GMimeObject * part, gpointer user_data) mime_part->raw_headers = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal); rspamd_mempool_add_destructor (task->task_pool, - (rspamd_mempool_destruct_t) g_hash_table_destroy, + (rspamd_mempool_destruct_t) g_hash_table_unref, mime_part->raw_headers); if (hdrs != NULL) { process_raw_headers (task, mime_part->raw_headers, |