mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.2104 (#6332)
Problem: Code duplication when unreferencing a function.
Solution: De-duplicate.
97baee80f0
This commit is contained in:
parent
eb0e94f71b
commit
831eb2a9bf
@ -20711,13 +20711,7 @@ void func_unref(char_u *name)
|
||||
abort();
|
||||
#endif
|
||||
}
|
||||
if (fp != NULL && --fp->uf_refcount <= 0) {
|
||||
// Only delete it when it's not being used. Otherwise it's done
|
||||
// when "uf_calls" becomes zero.
|
||||
if (fp->uf_calls == 0) {
|
||||
func_clear_free(fp, false);
|
||||
}
|
||||
}
|
||||
func_ptr_unref(fp);
|
||||
}
|
||||
|
||||
/// Unreference a Function: decrement the reference count and free it when it
|
||||
|
@ -337,7 +337,7 @@ static const int included_patches[] = {
|
||||
2107,
|
||||
2106,
|
||||
// 2105 NA
|
||||
// 2104,
|
||||
2104,
|
||||
2103,
|
||||
// 2102 NA
|
||||
2101,
|
||||
|
Loading…
Reference in New Issue
Block a user