Permalink
Browse files

patch 7.4.2348

Problem:    Crash on exit when EXITFREE is defined. (Dominique Pelle)
Solution:   Don't access curwin when exiting.
  • Loading branch information...
1 parent c4a908e commit 9a27c7fde6d453d9892b6f6baa756bce4d6d419d @brammool brammool committed Sep 9, 2016
Showing with 7 additions and 1 deletion.
  1. +5 −1 src/buffer.c
  2. +2 −0 src/version.c
View
@@ -580,7 +580,11 @@ close_buffer(
/* When closing the current buffer stop Visual mode before freeing
* anything. */
- if (buf == curbuf)
+ if (buf == curbuf
+#if defined(EXITFREE)
+ && !entered_free_all_mem
+#endif
+ )
end_visual_mode();
/*
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2348,
+/**/
2347,
/**/
2346,

0 comments on commit 9a27c7f

Please sign in to comment.