summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-01 15:15:47 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-01 15:15:47 +0100
commit6d5b4f566a2a50c1de7300336e9e4f5e761500a8 (patch)
tree35a09a65e6ec07450edd17637b977981774ac1b9
parentbbea47075cc4e7826e9f8c203e4272ba023ed7b0 (diff)
patch 8.1.0674: leaking memory when updating a single linev8.1.0674
Problem: Leaking memory when updating a single line. Solution: Do not call start_search_hl() twice.
-rw-r--r--src/screen.c4
-rw-r--r--src/version.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/screen.c b/src/screen.c
index 322efceedb..55874e99fb 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -961,14 +961,10 @@ update_single_line(win_T *wp, linenr_T lnum)
screen_start(); /* not sure of screen cursor */
# ifdef FEAT_SEARCH_EXTRA
init_search_hl(wp);
- start_search_hl();
prepare_search_hl(wp, lnum);
# endif
win_line(wp, lnum, row, row + wp->w_lines[j].wl_size,
FALSE, FALSE);
-# if defined(FEAT_SEARCH_EXTRA)
- end_search_hl();
-# endif
break;
}
row += wp->w_lines[j].wl_size;
diff --git a/src/version.c b/src/version.c
index 824091224e..17f773309d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -800,6 +800,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 674,
+/**/
673,
/**/
672,