81c2858
To: vim-dev@vim.org
81c2858
Subject: Patch 7.2.160
81c2858
Fcc: outbox
81c2858
From: Bram Moolenaar <Bram@moolenaar.net>
81c2858
Mime-Version: 1.0
81c2858
Content-Type: text/plain; charset=ISO-8859-1
81c2858
Content-Transfer-Encoding: 8bit
81c2858
------------
81c2858
81c2858
Patch 7.2.160
81c2858
Problem:    Search pattern not freed on exit when 'rightleft' set.
81c2858
Solution:   Free mr_pattern_alloced.
81c2858
Files:	    src/search.c
81c2858
81c2858
81c2858
*** ../vim-7.2.159/src/search.c	Wed Apr 22 16:42:24 2009
81c2858
--- src/search.c	Wed Apr 22 12:26:19 2009
81c2858
***************
81c2858
*** 345,350 ****
81c2858
--- 345,359 ----
81c2858
  {
81c2858
      vim_free(spats[0].pat);
81c2858
      vim_free(spats[1].pat);
81c2858
+ 
81c2858
+ # ifdef FEAT_RIGHTLEFT
81c2858
+     if (mr_pattern_alloced)
81c2858
+     {
81c2858
+         vim_free(mr_pattern);
81c2858
+         mr_pattern_alloced = FALSE;
81c2858
+         mr_pattern = NULL;
81c2858
+     }
81c2858
+ # endif
81c2858
  }
81c2858
  #endif
81c2858
  
81c2858
*** ../vim-7.2.159/src/version.c	Wed Apr 22 17:50:53 2009
81c2858
--- src/version.c	Wed Apr 22 18:42:25 2009
81c2858
***************
81c2858
*** 678,679 ****
81c2858
--- 678,681 ----
81c2858
  {   /* Add new patch number below this line */
81c2858
+ /**/
81c2858
+     160,
81c2858
  /**/
81c2858
81c2858
-- 
81c2858
    f y cn rd ths thn y cn hv grt jb n cmptr prgrmmng
81c2858
81c2858
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
81c2858
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
81c2858
\\\        download, build and distribute -- http://www.A-A-P.org        ///
81c2858
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///