4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Search pattern not freed on exit when 'rightleft' set.
12 Solution: Free mr_pattern_alloced.
16 *** ../vim-7.2.159/src/search.c Wed Apr 22 16:42:24 2009
17 --- src/search.c Wed Apr 22 12:26:19 2009
22 vim_free(spats[0].pat);
23 vim_free(spats[1].pat);
25 + # ifdef FEAT_RIGHTLEFT
26 + if (mr_pattern_alloced)
28 + vim_free(mr_pattern);
29 + mr_pattern_alloced = FALSE;
36 *** ../vim-7.2.159/src/version.c Wed Apr 22 17:50:53 2009
37 --- src/version.c Wed Apr 22 18:42:25 2009
41 { /* Add new patch number below this line */
47 f y cn rd ths thn y cn hv grt jb n cmptr prgrmmng
49 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
50 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
51 \\\ download, build and distribute -- http://www.A-A-P.org ///
52 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///