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