summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-02-05 15:10:51 +0100
committerBram Moolenaar <Bram@vim.org>2017-02-05 15:10:51 +0100
commit955f198fc546cc30a34361932d3f454a61df0efa (patch)
tree04a9cf18bd3af2e373747341d91e6bcc86332690 /src/os_mswin.c
parente971df39a5aac5d9b7e8033247dc18b12daa0eb8 (diff)
downloadvim-955f198fc546cc30a34361932d3f454a61df0efa.zip
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.
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r--src/os_mswin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c
index 14fe8c6a2..5f6e11dab 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -201,6 +201,8 @@ int _stricoll(char *a, char *b)
void
mch_exit(int r)
{
+ exiting = TRUE;
+
display_errors();
ml_close_all(TRUE); /* remove all memfiles */