comparison src/os_mswin.c @ 10835:c9da7f9137af v8.0.0307

patch 8.0.0307: asan detects a memory error when EXITFREE is defined commit https://github.com/vim/vim/commit/955f198fc546cc30a34361932d3f454a61df0efa Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 5 15:10:51 2017 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Feb 2017 15:15:04 +0100
parents 04eb70c77cf4
children 506f5d8b7d8b
comparison
equal deleted inserted replaced
10834:63f95d6b8f60 10835:c9da7f9137af
199 * Careful: mch_exit() may be called before mch_init()! 199 * Careful: mch_exit() may be called before mch_init()!
200 */ 200 */
201 void 201 void
202 mch_exit(int r) 202 mch_exit(int r)
203 { 203 {
204 exiting = TRUE;
205
204 display_errors(); 206 display_errors();
205 207
206 ml_close_all(TRUE); /* remove all memfiles */ 208 ml_close_all(TRUE); /* remove all memfiles */
207 209
208 # ifdef FEAT_OLE 210 # ifdef FEAT_OLE