summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/textbuffer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fe-text/textbuffer.c b/src/fe-text/textbuffer.c
index eb841096..9e791f4c 100644
--- a/src/fe-text/textbuffer.c
+++ b/src/fe-text/textbuffer.c
@@ -576,16 +576,13 @@ GList *textbuffer_find_text(TEXT_BUFFER_REC *buffer, LINE_REC *startline,
(line->info.level & nolevel) == 0;
if (*text != '\0') {
- const char *tmp = NULL;
textbuffer_line2text(line, FALSE, str);
if (line_matched) {
line_matched = regexp ?
- i_regex_match(preg, str->str, 0, NULL, &tmp)
+ i_regex_match(preg, str->str, 0, NULL)
: match_func(str->str, text) != NULL;
}
- if (tmp && tmp != str->str)
- g_free_not_null((char *)tmp);
}
if (line_matched) {