summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-30 22:47:56 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-30 22:47:56 +0200
commit623e263ffb998acacd6fd0de18c44e03af2a47d1 (patch)
treed9db8377e5c762b97f715af27f115445f3a999c7 /src/misc2.c
parent3ab14355ed93958433eec58e96ec9bd9a472f2b2 (diff)
downloadvim-git-623e263ffb998acacd6fd0de18c44e03af2a47d1.tar.gz
patch 7.4.2130v7.4.2130
Problem: Pending timers cause false memory leak reports. Solution: Free all timers on exit.
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 281f4af1a..53469a261 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1224,6 +1224,9 @@ free_all_mem(void)
channel_free_all();
job_free_all();
# endif
+#ifdef FEAT_TIMERS
+ timer_free_all();
+#endif
free_termoptions();