summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2011-12-30 13:39:10 +0100
committerBram Moolenaar <bram@vim.org>2011-12-30 13:39:10 +0100
commit1c2993fd319b9d3bbd58c22ea05f9718700cf362 (patch)
tree624cd226b909bbbb4ca31954fa6f2b74d4df71ee
parent83373d84c1a6a5cc1bf3abe94cfb8eddf36e01dc (diff)
downloadvim-1c2993fd319b9d3bbd58c22ea05f9718700cf362.tar.gz
updated for version 7.3.388v7.3.388v7-3-388
Problem: Crash on exit when EXITFREE is defined and using tiny features. Solution: Check for NULL window pointer. (Dominique Pelle)
-rw-r--r--src/buffer.c2
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 5b2ec687..2884b303 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -419,6 +419,8 @@ close_buffer(win, buf, action)
if (
#ifdef FEAT_WINDOWS
win_valid(win) &&
+#else
+ win != NULL &&
#endif
win->w_buffer == buf)
win->w_buffer = NULL; /* make sure we don't use the buffer now */
diff --git a/src/version.c b/src/version.c
index 50532c20..9753d812 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 388,
+/**/
387,
/**/
386,