|
Karsten Hopp |
dc2bd1 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
dc2bd1 |
Subject: Patch 7.1.289
|
|
Karsten Hopp |
dc2bd1 |
Fcc: outbox
|
|
Karsten Hopp |
dc2bd1 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
dc2bd1 |
Mime-Version: 1.0
|
|
Karsten Hopp |
dc2bd1 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
dc2bd1 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
dc2bd1 |
------------
|
|
Karsten Hopp |
dc2bd1 |
|
|
Karsten Hopp |
dc2bd1 |
Patch 7.1.289
|
|
Karsten Hopp |
dc2bd1 |
Problem: When EXITFREE is defined and 'acd' is set freed memory is used.
|
|
Karsten Hopp |
dc2bd1 |
(Dominique Pelle)
|
|
Karsten Hopp |
dc2bd1 |
Solution: Reset p_acd before freeing all buffers.
|
|
Karsten Hopp |
dc2bd1 |
Files: src/misc2.c
|
|
Karsten Hopp |
dc2bd1 |
|
|
Karsten Hopp |
dc2bd1 |
|
|
Karsten Hopp |
dc2bd1 |
*** ../vim-7.1.288/src/misc2.c Wed Feb 20 12:22:59 2008
|
|
Karsten Hopp |
dc2bd1 |
--- src/misc2.c Wed Mar 26 21:02:57 2008
|
|
Karsten Hopp |
dc2bd1 |
***************
|
|
Karsten Hopp |
dc2bd1 |
*** 751,757 ****
|
|
Karsten Hopp |
dc2bd1 |
#endif
|
|
Karsten Hopp |
dc2bd1 |
|
|
Karsten Hopp |
dc2bd1 |
/*
|
|
Karsten Hopp |
dc2bd1 |
! * Note: if unsinged is 16 bits we can only allocate up to 64K with alloc().
|
|
Karsten Hopp |
dc2bd1 |
* Use lalloc for larger blocks.
|
|
Karsten Hopp |
dc2bd1 |
*/
|
|
Karsten Hopp |
dc2bd1 |
char_u *
|
|
Karsten Hopp |
dc2bd1 |
--- 752,758 ----
|
|
Karsten Hopp |
dc2bd1 |
#endif
|
|
Karsten Hopp |
dc2bd1 |
|
|
Karsten Hopp |
dc2bd1 |
/*
|
|
Karsten Hopp |
dc2bd1 |
! * Note: if unsigned is 16 bits we can only allocate up to 64K with alloc().
|
|
Karsten Hopp |
dc2bd1 |
* Use lalloc for larger blocks.
|
|
Karsten Hopp |
dc2bd1 |
*/
|
|
Karsten Hopp |
dc2bd1 |
char_u *
|
|
Karsten Hopp |
dc2bd1 |
***************
|
|
Karsten Hopp |
dc2bd1 |
*** 1082,1088 ****
|
|
Karsten Hopp |
dc2bd1 |
win_free_all();
|
|
Karsten Hopp |
dc2bd1 |
#endif
|
|
Karsten Hopp |
dc2bd1 |
|
|
Karsten Hopp |
dc2bd1 |
! /* Free all buffers. */
|
|
Karsten Hopp |
dc2bd1 |
for (buf = firstbuf; buf != NULL; )
|
|
Karsten Hopp |
dc2bd1 |
{
|
|
Karsten Hopp |
dc2bd1 |
nextbuf = buf->b_next;
|
|
Karsten Hopp |
dc2bd1 |
--- 1083,1093 ----
|
|
Karsten Hopp |
dc2bd1 |
win_free_all();
|
|
Karsten Hopp |
dc2bd1 |
#endif
|
|
Karsten Hopp |
dc2bd1 |
|
|
Karsten Hopp |
dc2bd1 |
! /* Free all buffers. Reset 'autochdir' to avoid accessing things that
|
|
Karsten Hopp |
dc2bd1 |
! * were freed already. */
|
|
Karsten Hopp |
dc2bd1 |
! #ifdef FEAT_AUTOCHDIR
|
|
Karsten Hopp |
dc2bd1 |
! p_acd = FALSE;
|
|
Karsten Hopp |
dc2bd1 |
! #endif
|
|
Karsten Hopp |
dc2bd1 |
for (buf = firstbuf; buf != NULL; )
|
|
Karsten Hopp |
dc2bd1 |
{
|
|
Karsten Hopp |
dc2bd1 |
nextbuf = buf->b_next;
|
|
Karsten Hopp |
dc2bd1 |
*** ../vim-7.1.288/src/version.c Tue Apr 1 14:30:18 2008
|
|
Karsten Hopp |
dc2bd1 |
--- src/version.c Tue Apr 1 14:51:06 2008
|
|
Karsten Hopp |
dc2bd1 |
***************
|
|
Karsten Hopp |
dc2bd1 |
*** 668,669 ****
|
|
Karsten Hopp |
dc2bd1 |
--- 668,671 ----
|
|
Karsten Hopp |
dc2bd1 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
dc2bd1 |
+ /**/
|
|
Karsten Hopp |
dc2bd1 |
+ 289,
|
|
Karsten Hopp |
dc2bd1 |
/**/
|
|
Karsten Hopp |
dc2bd1 |
|
|
Karsten Hopp |
dc2bd1 |
--
|
|
Karsten Hopp |
dc2bd1 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
dc2bd1 |
207. You're given one phone call in prison and you ask them for a laptop.
|
|
Karsten Hopp |
dc2bd1 |
|
|
Karsten Hopp |
dc2bd1 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
dc2bd1 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
dc2bd1 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
dc2bd1 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|