diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-30 22:47:56 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-30 22:47:56 +0200 |
commit | 623e263ffb998acacd6fd0de18c44e03af2a47d1 (patch) | |
tree | d9db8377e5c762b97f715af27f115445f3a999c7 /src/proto | |
parent | 3ab14355ed93958433eec58e96ec9bd9a472f2b2 (diff) | |
download | vim-623e263ffb998acacd6fd0de18c44e03af2a47d1.zip |
patch 7.4.2130
Problem: Pending timers cause false memory leak reports.
Solution: Free all timers on exit.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/ex_cmds2.pro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/proto/ex_cmds2.pro b/src/proto/ex_cmds2.pro index 8d9b72a24..c7a860b9f 100644 --- a/src/proto/ex_cmds2.pro +++ b/src/proto/ex_cmds2.pro @@ -18,11 +18,12 @@ float_T profile_float(proftime_T *tm); void profile_setlimit(long msec, proftime_T *tm); int profile_passed_limit(proftime_T *tm); void profile_zero(proftime_T *tm); -timer_T *create_timer(long msec, int repeats); +timer_T *create_timer(long msec, int repeat); long check_due_timer(void); timer_T *find_timer(int id); void stop_timer(timer_T *timer); int set_ref_in_timer(int copyID); +void timer_free_all(void); void profile_divide(proftime_T *tm, int count, proftime_T *tm2); void profile_add(proftime_T *tm, proftime_T *tm2); void profile_self(proftime_T *self, proftime_T *total, proftime_T *children); |