commit | 1436d8d51cce114be56209924fc71376407e5bad | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jul 11 22:41:15 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jul 11 22:41:15 2016 +0200 |
tree | c6ba6f27b14db303429e2e50ce3645ed865a765c | |
parent | da3a77d9ec28407b8fa2aa014e76944d0a525662 [diff] [blame] |
patch 7.4.2026 Problem: Reference counting for callbacks isn't right. Solution: Add free_callback(). (Ken Takata) Fix reference count.
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index c8980b4..2b2d635 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c
@@ -1121,8 +1121,7 @@ static void free_timer(timer_T *timer) { - vim_free(timer->tr_callback); - partial_unref(timer->tr_partial); + free_callback(timer->tr_callback, timer->tr_partial); vim_free(timer); }