diff src/buffer.c @ 3238:683fab13904c v7.3.388

updated for version 7.3.388 Problem: Crash on exit when EXITFREE is defined and using tiny features. Solution: Check for NULL window pointer. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Fri, 30 Dec 2011 13:39:10 +0100
parents e42252611e74
children 55cebc7e5de0
line wrap: on
line diff
--- 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 */