0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.1866

Problem:    Invalid memory access when exiting with EXITFREE defined.
            (Dominique Pelle)
Solution:   Set "really_exiting" and skip error messages.
This commit is contained in:
Bram Moolenaar
2016-06-01 22:21:06 +02:00
parent 9ad73239c2
commit a96732150c
3 changed files with 10 additions and 1 deletions

View File

@@ -25348,7 +25348,11 @@ func_unref(char_u *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 if (--fp->uf_refcount <= 0)
{
/* Only delete it when it's not being used. Otherwise it's done