[evolution-data-server] camel-folder-search: Fix a memory leak when searching message body
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] camel-folder-search: Fix a memory leak when searching message body
- Date: Mon, 15 Jun 2020 12:25:58 +0000 (UTC)
commit b4d456c38c18f8eed32f9820f2d9429bbe6e56bf
Author: Milan Crha <mcrha redhat com>
Date: Mon Jun 15 14:25:34 2020 +0200
camel-folder-search: Fix a memory leak when searching message body
src/camel/camel-folder-search.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/camel/camel-folder-search.c b/src/camel/camel-folder-search.c
index 346af67a4..858ff79f4 100644
--- a/src/camel/camel-folder-search.c
+++ b/src/camel/camel-folder-search.c
@@ -617,8 +617,10 @@ match_words_1message (CamelDataWrapper *object,
if (camel_ustrstrcase ((const gchar *) byte_array->data, words->words[i]->word) !=
NULL) {
*mask |= (1 << i);
/* shortcut a match */
- if (*mask == (1 << (words->len)) - 1)
- return TRUE;
+ if (*mask == (1 << (words->len)) - 1) {
+ truth = TRUE;
+ break;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]