diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-11 22:41:15 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-11 22:41:15 +0200 |
commit | 1436d8d51cce114be56209924fc71376407e5bad (patch) | |
tree | c6ba6f27b14db303429e2e50ce3645ed865a765c /src/proto/eval.pro | |
parent | da3a77d9ec28407b8fa2aa014e76944d0a525662 (diff) |
patch 7.4.2026v7.4.2026
Problem: Reference counting for callbacks isn't right.
Solution: Add free_callback(). (Ken Takata) Fix reference count.
Diffstat (limited to 'src/proto/eval.pro')
-rw-r--r-- | src/proto/eval.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/eval.pro b/src/proto/eval.pro index e81669b05e..6d1144776b 100644 --- a/src/proto/eval.pro +++ b/src/proto/eval.pro @@ -94,6 +94,7 @@ void mzscheme_call_vim(char_u *name, typval_T *args, typval_T *rettv); float_T vim_round(float_T f); long do_searchpair(char_u *spat, char_u *mpat, char_u *epat, int dir, char_u *skip, int flags, pos_T *match_pos, linenr_T lnum_stop, long time_limit); char_u *get_callback(typval_T *arg, partial_T **pp); +void free_callback(char_u *callback, partial_T *partial); void set_vim_var_nr(int idx, varnumber_T val); varnumber_T get_vim_var_nr(int idx); char_u *get_vim_var_str(int idx); |