diff options
author | James McCoy <jamessan@jamessan.com> | 2017-01-01 22:34:17 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-01-01 23:20:24 -0500 |
commit | 1feaa450cb024a4cd4eb3ae7ab7e5db683909488 (patch) | |
tree | b4a2ba8ffb8450f9227a0d9ce0bd2989bb075e3a /src/nvim/memory.c | |
parent | c5f4b92ff93a40ec4e77b78d0576903e7a60eefd (diff) | |
download | rneovim-1feaa450cb024a4cd4eb3ae7ab7e5db683909488.tar.gz rneovim-1feaa450cb024a4cd4eb3ae7ab7e5db683909488.tar.bz2 rneovim-1feaa450cb024a4cd4eb3ae7ab7e5db683909488.zip |
vim-patch:7.4.1866
Problem: Invalid memory access when exiting with EXITFREE defined.
(Dominique Pelle)
Solution: Set "really_exiting" and skip error messages.
https://github.com/vim/vim/commit/a96732150cda2f242133228579b05437a39b8daa
This fails to build, due to a00c2e0ecbaec366364cecb5efbdb456c8c543ef
removing really_exiting from globals.h, but the next commit fixes the
build failure.
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r-- | src/nvim/memory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c index 071ef335cf..63914f3a46 100644 --- a/src/nvim/memory.c +++ b/src/nvim/memory.c @@ -496,6 +496,9 @@ void free_all_mem(void) return; entered = true; + // Set this flag to indicate some errors can be ignored. + really_exiting = true; + // Don't want to trigger autocommands from here on. block_autocmds(); |