diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-06-01 23:08:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-06-01 23:08:39 +0200 |
commit | b89a25f17e274dc308c584ea69a129ffbb26bc3d (patch) | |
tree | 455bf3eab43488d41987e9e5ef1cebd50e099b71 /src/globals.h | |
parent | 3c809343c72d9964475f421fd03bb892bc584a51 (diff) | |
download | vim-git-b89a25f17e274dc308c584ea69a129ffbb26bc3d.tar.gz |
patch 7.4.1868v7.4.1868
Problem: Setting really_exiting causes memory leaks to be reported.
Solution: Add the in_free_all_mem flag.
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index 5010cd4ae..369eb546e 100644 --- a/src/globals.h +++ b/src/globals.h @@ -635,6 +635,10 @@ EXTERN int exiting INIT(= FALSE); EXTERN int really_exiting INIT(= FALSE); /* TRUE when we are sure to exit, e.g., after * a deadly signal */ +#if defined(EXITFREE) +EXTERN int entered_free_all_mem INIT(= FALSE); + /* TRUE when in or after free_all_mem() */ +#endif /* volatile because it is used in signal handler deathtrap(). */ EXTERN volatile int full_screen INIT(= FALSE); /* TRUE when doing full-screen output |