From 4edfccfce794d4c10b2a92c02fe982bb089c6629 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Mon, 5 Jun 2017 11:41:50 +0200 Subject: get rid of new_text --- src/fe-text/textbuffer.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/fe-text/textbuffer.c') 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) { -- cgit v1.2.3