home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.2 / 7.2.034 < prev    next >
Encoding:
Internet Message Format  |  2008-11-11  |  2.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.2.034
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.2.034
  11. Problem:    Memory leak in spell info when deleting buffer.
  12. Solution:   Free the memory. (Dominique Pelle)
  13. Files:        src/buffer.c
  14.  
  15.  
  16. *** ../vim-7.2.033/src/buffer.c    Mon Sep  1 17:32:40 2008
  17. --- src/buffer.c    Wed Nov 12 11:21:49 2008
  18. ***************
  19. *** 647,652 ****
  20. --- 647,655 ----
  21.       vim_free(buf->b_start_fenc);
  22.       buf->b_start_fenc = NULL;
  23.   #endif
  24. + #ifdef FEAT_SPELL
  25. +     ga_clear(&buf->b_langp);
  26. + #endif
  27.   }
  28.   
  29.   /*
  30. ***************
  31. *** 1237,1243 ****
  32.        * "buf" if one exists */
  33.       if ((swb_flags & SWB_USEOPEN) && buf_jump_open_win(buf))
  34.           return OK;
  35. !     /* If 'switchbuf' contians "usetab": jump to first window in any tab
  36.        * page containing "buf" if one exists */
  37.       if ((swb_flags & SWB_USETAB) && buf_jump_open_tab(buf))
  38.           return OK;
  39. --- 1240,1246 ----
  40.        * "buf" if one exists */
  41.       if ((swb_flags & SWB_USEOPEN) && buf_jump_open_win(buf))
  42.           return OK;
  43. !     /* If 'switchbuf' contains "usetab": jump to first window in any tab
  44.        * page containing "buf" if one exists */
  45.       if ((swb_flags & SWB_USETAB) && buf_jump_open_tab(buf))
  46.           return OK;
  47. ***************
  48. *** 3964,3970 ****
  49.       width = vim_strsize(out);
  50.       if (maxwidth > 0 && width > maxwidth)
  51.       {
  52. !     /* Result is too long, must trunctate somewhere. */
  53.       l = 0;
  54.       if (itemcnt == 0)
  55.           s = out;
  56. --- 3967,3973 ----
  57.       width = vim_strsize(out);
  58.       if (maxwidth > 0 && width > maxwidth)
  59.       {
  60. !     /* Result is too long, must truncate somewhere. */
  61.       l = 0;
  62.       if (itemcnt == 0)
  63.           s = out;
  64. *** ../vim-7.2.033/src/version.c    Tue Nov 11 21:55:29 2008
  65. --- src/version.c    Wed Nov 12 12:51:21 2008
  66. ***************
  67. *** 678,679 ****
  68. --- 678,681 ----
  69.   {   /* Add new patch number below this line */
  70. + /**/
  71. +     34,
  72.   /**/
  73.  
  74. -- 
  75. hundred-and-one symptoms of being an internet addict:
  76. 236. You start saving URL's in your digital watch.
  77.  
  78.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  79. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  80. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  81.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  82.