]> granicus.if.org Git - vim/commitdiff
patch 8.1.0674: leaking memory when updating a single line v8.1.0674
authorBram Moolenaar <Bram@vim.org>
Tue, 1 Jan 2019 14:15:47 +0000 (15:15 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 1 Jan 2019 14:15:47 +0000 (15:15 +0100)
Problem:    Leaking memory when updating a single line.
Solution:   Do not call start_search_hl() twice.

src/screen.c
src/version.c

index 322efceedba347e9aeeb9412320814c1358a204b..55874e99fbf29de197e35dde195b782ac874571d 100644 (file)
@@ -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;
index 824091224e363e0c3e29b6d0fb283986dc612ea2..17f773309daeff782f53e329db8448e6fb972a56 100644 (file)
@@ -799,6 +799,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    674,
 /**/
     673,
 /**/