|
Karsten Hopp |
81c285 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
81c285 |
Subject: Patch 7.2.243
|
|
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=UTF-8
|
|
Karsten Hopp |
81c285 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
81c285 |
------------
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
Patch 7.2.243
|
|
Karsten Hopp |
81c285 |
Problem: Memory leak when using :vimgrep and resizing. (Dominique Pelle)
|
|
Karsten Hopp |
81c285 |
Solution: Free memory for aucmd_win when resizing and don't allocate it
|
|
Karsten Hopp |
81c285 |
twice.
|
|
Karsten Hopp |
81c285 |
Files: src/screen.c
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.242/src/screen.c 2009-06-16 17:22:38.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/screen.c 2009-07-29 15:59:37.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 7467,7472 ****
|
|
Karsten Hopp |
81c285 |
--- 7467,7476 ----
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
FOR_ALL_TAB_WINDOWS(tp, wp)
|
|
Karsten Hopp |
81c285 |
win_free_lsize(wp);
|
|
Karsten Hopp |
81c285 |
+ #ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
81c285 |
+ if (aucmd_win != NULL)
|
|
Karsten Hopp |
81c285 |
+ win_free_lsize(aucmd_win);
|
|
Karsten Hopp |
81c285 |
+ #endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
new_ScreenLines = (schar_T *)lalloc((long_u)(
|
|
Karsten Hopp |
81c285 |
(Rows + 1) * Columns * sizeof(schar_T)), FALSE);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 7504,7510 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
81c285 |
! if (aucmd_win != NULL && win_alloc_lines(aucmd_win) == FAIL)
|
|
Karsten Hopp |
81c285 |
outofmem = TRUE;
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
81c285 |
--- 7508,7515 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
81c285 |
! if (aucmd_win != NULL && aucmd_win->w_lines == NULL
|
|
Karsten Hopp |
81c285 |
! && win_alloc_lines(aucmd_win) == FAIL)
|
|
Karsten Hopp |
81c285 |
outofmem = TRUE;
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.242/src/version.c 2009-07-29 15:41:32.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/version.c 2009-07-29 16:07:47.000000000 +0200
|
|
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 |
+ 243,
|
|
Karsten Hopp |
81c285 |
/**/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--
|
|
Karsten Hopp |
81c285 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
81c285 |
118. You are on a first-name basis with your ISP's staff.
|
|
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 ///
|