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,
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,