aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-08-21 18:28:47 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-08-21 18:28:47 +0400
commit6e96678e839574fa246eacdffe328fadca783628 (patch)
tree2473fb08cfa28aee67e25a44317e0d666d68aed1 /src/message.c
parent6aa54cc5032b7bf089df667b567f304108cbd30c (diff)
downloadrspamd-6e96678e839574fa246eacdffe328fadca783628.tar.gz
rspamd-6e96678e839574fa246eacdffe328fadca783628.zip
* Fix processing of empty parts
* Fix memory problems in controller
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c
index c4027ef14..e9d692a5d 100644
--- a/src/message.c
+++ b/src/message.c
@@ -517,6 +517,7 @@ process_text_part (struct worker_task *task, GByteArray *part_content, GMimeCont
text_part->is_empty = TRUE;
text_part->orig = NULL;
text_part->content = NULL;
+ task->text_parts = g_list_prepend (task->text_parts, text_part);
return;
}
text_part->orig = convert_text_to_utf (task, part_content, type, text_part);
@@ -553,6 +554,7 @@ process_text_part (struct worker_task *task, GByteArray *part_content, GMimeCont
text_part->is_empty = TRUE;
text_part->orig = NULL;
text_part->content = NULL;
+ task->text_parts = g_list_prepend (task->text_parts, text_part);
return;
}
text_part->orig = convert_text_to_utf (task, part_content, type, text_part);