mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.1866
Problem: Invalid memory access when exiting with EXITFREE defined. (Dominique Pelle) Solution: Set "really_exiting" and skip error messages.a96732150c
This fails to build, due toa00c2e0ecb
removing really_exiting from globals.h, but the next commit fixes the build failure.
This commit is contained in:
parent
c5f4b92ff9
commit
1feaa450cb
@ -21569,7 +21569,10 @@ void func_unref(char_u *name)
|
||||
if (name != NULL && isdigit(*name)) {
|
||||
fp = find_func(name);
|
||||
if (fp == NULL) {
|
||||
EMSG2(_(e_intern2), "func_unref()");
|
||||
// Ignore when invoked through free_all_mem().
|
||||
if (!really_exiting) {
|
||||
EMSG2(_(e_intern2), "func_unref()");
|
||||
}
|
||||
} else {
|
||||
user_func_unref(fp);
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
@ -574,7 +574,7 @@ static int included_patches[] = {
|
||||
// 1869 NA
|
||||
// 1868,
|
||||
1867,
|
||||
// 1866,
|
||||
1866,
|
||||
// 1865 NA
|
||||
// 1864 NA
|
||||
// 1863 NA
|
||||
|
Loading…
Reference in New Issue
Block a user