Karsten Hopp 562eba
To: vim-dev@vim.org
Karsten Hopp 562eba
Subject: Patch 7.2.034
Karsten Hopp 562eba
Fcc: outbox
Karsten Hopp 562eba
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 562eba
Mime-Version: 1.0
Karsten Hopp 562eba
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 562eba
Content-Transfer-Encoding: 8bit
Karsten Hopp 562eba
------------
Karsten Hopp 562eba
Karsten Hopp 562eba
Patch 7.2.034
Karsten Hopp 562eba
Problem:    Memory leak in spell info when deleting buffer.
Karsten Hopp 562eba
Solution:   Free the memory. (Dominique Pelle)
Karsten Hopp 562eba
Files:	    src/buffer.c
Karsten Hopp 562eba
Karsten Hopp 562eba
Karsten Hopp 562eba
*** ../vim-7.2.033/src/buffer.c	Mon Sep  1 17:32:40 2008
Karsten Hopp 562eba
--- src/buffer.c	Wed Nov 12 11:21:49 2008
Karsten Hopp 562eba
***************
Karsten Hopp 562eba
*** 647,652 ****
Karsten Hopp 562eba
--- 647,655 ----
Karsten Hopp 562eba
      vim_free(buf->b_start_fenc);
Karsten Hopp 562eba
      buf->b_start_fenc = NULL;
Karsten Hopp 562eba
  #endif
Karsten Hopp 562eba
+ #ifdef FEAT_SPELL
Karsten Hopp 562eba
+     ga_clear(&buf->b_langp);
Karsten Hopp 562eba
+ #endif
Karsten Hopp 562eba
  }
Karsten Hopp 562eba
  
Karsten Hopp 562eba
  /*
Karsten Hopp 562eba
***************
Karsten Hopp 562eba
*** 1237,1243 ****
Karsten Hopp 562eba
  	 * "buf" if one exists */
Karsten Hopp 562eba
  	if ((swb_flags & SWB_USEOPEN) && buf_jump_open_win(buf))
Karsten Hopp 562eba
  	    return OK;
Karsten Hopp 562eba
! 	/* If 'switchbuf' contians "usetab": jump to first window in any tab
Karsten Hopp 562eba
  	 * page containing "buf" if one exists */
Karsten Hopp 562eba
  	if ((swb_flags & SWB_USETAB) && buf_jump_open_tab(buf))
Karsten Hopp 562eba
  	    return OK;
Karsten Hopp 562eba
--- 1240,1246 ----
Karsten Hopp 562eba
  	 * "buf" if one exists */
Karsten Hopp 562eba
  	if ((swb_flags & SWB_USEOPEN) && buf_jump_open_win(buf))
Karsten Hopp 562eba
  	    return OK;
Karsten Hopp 562eba
! 	/* If 'switchbuf' contains "usetab": jump to first window in any tab
Karsten Hopp 562eba
  	 * page containing "buf" if one exists */
Karsten Hopp 562eba
  	if ((swb_flags & SWB_USETAB) && buf_jump_open_tab(buf))
Karsten Hopp 562eba
  	    return OK;
Karsten Hopp 562eba
***************
Karsten Hopp 562eba
*** 3964,3970 ****
Karsten Hopp 562eba
      width = vim_strsize(out);
Karsten Hopp 562eba
      if (maxwidth > 0 && width > maxwidth)
Karsten Hopp 562eba
      {
Karsten Hopp 562eba
! 	/* Result is too long, must trunctate somewhere. */
Karsten Hopp 562eba
  	l = 0;
Karsten Hopp 562eba
  	if (itemcnt == 0)
Karsten Hopp 562eba
  	    s = out;
Karsten Hopp 562eba
--- 3967,3973 ----
Karsten Hopp 562eba
      width = vim_strsize(out);
Karsten Hopp 562eba
      if (maxwidth > 0 && width > maxwidth)
Karsten Hopp 562eba
      {
Karsten Hopp 562eba
! 	/* Result is too long, must truncate somewhere. */
Karsten Hopp 562eba
  	l = 0;
Karsten Hopp 562eba
  	if (itemcnt == 0)
Karsten Hopp 562eba
  	    s = out;
Karsten Hopp 562eba
*** ../vim-7.2.033/src/version.c	Tue Nov 11 21:55:29 2008
Karsten Hopp 562eba
--- src/version.c	Wed Nov 12 12:51:21 2008
Karsten Hopp 562eba
***************
Karsten Hopp 562eba
*** 678,679 ****
Karsten Hopp 562eba
--- 678,681 ----
Karsten Hopp 562eba
  {   /* Add new patch number below this line */
Karsten Hopp 562eba
+ /**/
Karsten Hopp 562eba
+     34,
Karsten Hopp 562eba
  /**/
Karsten Hopp 562eba
Karsten Hopp 562eba
-- 
Karsten Hopp 562eba
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 562eba
236. You start saving URL's in your digital watch.
Karsten Hopp 562eba
Karsten Hopp 562eba
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 562eba
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 562eba
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 562eba
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///