- patchlevel 446

This commit is contained in:
Karsten Hopp 2010-07-12 22:10:33 +00:00
parent ff1bac297f
commit 8a036e32c4
3 changed files with 98 additions and 1 deletions

91
7.2.446 Normal file
View File

@ -0,0 +1,91 @@
To: vim-dev@vim.org
Subject: Patch 7.2.446
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------
Patch 7.2.446
Problem: Crash in GUI when closing the last window in a tabpage. (ryo7000)
Solution: Remove the tabpage from the list before freeing the window.
Files: src/window.c
*** ../vim-7.2.445/src/window.c 2010-03-17 16:54:51.000000000 +0100
--- src/window.c 2010-07-11 13:18:31.000000000 +0200
***************
*** 2304,2309 ****
--- 2304,2310 ----
win_T *wp;
int dir;
tabpage_T *ptp = NULL;
+ int free_tp = FALSE;
/* Close the link to the buffer. */
close_buffer(win, win->w_buffer, free_buf ? DOBUF_UNLOAD : 0);
***************
*** 2321,2331 ****
if (wp == NULL)
return;
- /* Free the memory used for the window. */
- wp = win_free_mem(win, &dir, tp);
-
/* When closing the last window in a tab page remove the tab page. */
! if (wp == NULL)
{
if (tp == first_tabpage)
first_tabpage = tp->tp_next;
--- 2322,2329 ----
if (wp == NULL)
return;
/* When closing the last window in a tab page remove the tab page. */
! if (tp == NULL ? firstwin == lastwin : tp->tp_firstwin == tp->tp_lastwin)
{
if (tp == first_tabpage)
first_tabpage = tp->tp_next;
***************
*** 2341,2348 ****
}
ptp->tp_next = tp->tp_next;
}
! free_tabpage(tp);
}
}
/*
--- 2339,2352 ----
}
ptp->tp_next = tp->tp_next;
}
! free_tp = TRUE;
}
+
+ /* Free the memory used for the window. */
+ win_free_mem(win, &dir, tp);
+
+ if (free_tp)
+ free_tabpage(tp);
}
/*
*** ../vim-7.2.445/src/version.c 2010-07-07 18:20:21.000000000 +0200
--- src/version.c 2010-07-12 21:36:05.000000000 +0200
***************
*** 683,684 ****
--- 683,686 ----
{ /* Add new patch number below this line */
+ /**/
+ 446,
/**/
--
Not too long ago, compress was something you did to garbage...
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

View File

@ -477,3 +477,4 @@ Individual patches for Vim 7.2:
3953 7.2.443 taglist() on tag file with duplicate fields causes int. error 3953 7.2.443 taglist() on tag file with duplicate fields causes int. error
2904 7.2.444 (after 7.2.442) can't build with GTK 1 2904 7.2.444 (after 7.2.442) can't build with GTK 1
6993 7.2.445 crash when using undo/redo and FileChangedRO autocmd 6993 7.2.445 crash when using undo/redo and FileChangedRO autocmd
2372 7.2.446 crash in GUI when closing the last window in a tabpage

View File

@ -18,7 +18,7 @@
#used for pre-releases: #used for pre-releases:
%define beta %{nil} %define beta %{nil}
%define vimdir vim72%{?beta} %define vimdir vim72%{?beta}
%define patchlevel 445 %define patchlevel 446
Summary: The VIM editor Summary: The VIM editor
URL: http://www.vim.org/ URL: http://www.vim.org/
@ -511,6 +511,7 @@ Patch442: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.442
Patch443: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.443 Patch443: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.443
Patch444: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.444 Patch444: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.444
Patch445: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.445 Patch445: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.445
Patch446: ftp://ftp.vim.org/pub/vim/patches/7.2/7.2.446
Patch3000: vim-7.0-syntax.patch Patch3000: vim-7.0-syntax.patch
Patch3002: vim-7.1-nowarnings.patch Patch3002: vim-7.1-nowarnings.patch
@ -1094,6 +1095,7 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk
%patch443 -p0 %patch443 -p0
%patch444 -p0 %patch444 -p0
%patch445 -p0 %patch445 -p0
%patch446 -p0
# install spell files # install spell files
@ -1558,6 +1560,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/icons/hicolor/*/apps/* %{_datadir}/icons/hicolor/*/apps/*
%changelog %changelog
* Tue Jul 13 2010 Karsten Hopp <karsten@redhat.com> 7.2.446-1
- patchlevel 446
* Thu Jul 08 2010 Karsten Hopp <karsten@redhat.com> 7.2.445-1 * Thu Jul 08 2010 Karsten Hopp <karsten@redhat.com> 7.2.445-1
- patchlevel 445 - patchlevel 445