diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-05 17:43:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-05 17:44:35 +0100 |
commit | a64ce9b4245153e68fbbcd9c6610b9c1ccf76493 (patch) | |
tree | b9b9798b77974cf8d0793c948966a95963266771 /src/libserver/task.c | |
parent | 3807688a67be66d00a24172c13b00b6fb1816d69 (diff) | |
download | rspamd-a64ce9b4245153e68fbbcd9c6610b9c1ccf76493.tar.gz rspamd-a64ce9b4245153e68fbbcd9c6610b9c1ccf76493.zip |
[Rework] Rework utf content processing in text parts
- Store unicode in UTF parts
- Store unicode for HTML parts
- Rename struct fields and split them into unicode/utf components
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r-- | src/libserver/task.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index bfeec990b..07efcd182 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -242,20 +242,20 @@ rspamd_task_free (struct rspamd_task *task) for (i = 0; i < task->text_parts->len; i ++) { tp = g_ptr_array_index (task->text_parts, i); - if (tp->normalized_words) { - g_array_free (tp->normalized_words, TRUE); + if (tp->utf_words) { + g_array_free (tp->utf_words, TRUE); } if (tp->normalized_hashes) { g_array_free (tp->normalized_hashes, TRUE); } - if (tp->ucs32_words) { - g_array_free (tp->ucs32_words, TRUE); + if (tp->unicode_words) { + g_array_free (tp->unicode_words, TRUE); } if (tp->languages) { g_ptr_array_unref (tp->languages); } - if (tp->ucs_raw_content) { - g_array_free (tp->ucs_raw_content, TRUE); + if (tp->unicode_raw_content) { + g_array_free (tp->unicode_raw_content, TRUE); } } |