1
0
forked from aniani/vim

patch 8.0.0307: asan detects a memory error when EXITFREE is defined

Problem:    Asan detects a memory error when EXITFREE is defined. (Dominique
            Pelle)
Solution:   In getvcol() check for ml_get_buf() returning an empty string.
            Also skip adjusting the scroll position.  Set "exiting" in
            mch_exit() for all systems.
This commit is contained in:
Bram Moolenaar
2017-02-05 15:10:51 +01:00
parent e971df39a5
commit 955f198fc5
6 changed files with 16 additions and 2 deletions

View File

@@ -2538,8 +2538,9 @@ mch_init(void)
void
mch_exit(int r)
{
stoptermcap();
exiting = TRUE;
stoptermcap();
if (g_fWindInitCalled)
settmode(TMODE_COOK);