mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
func_clear_items: use XFREE_CLEAR #10436
Follow-up to https://github.com/neovim/neovim/pull/10428#discussion_r300813498
This commit is contained in:

committed by
Justin M. Keyes

parent
3c860e25e9
commit
b7ca478e10
@@ -22213,12 +22213,9 @@ static void func_clear_items(ufunc_T *fp)
|
|||||||
ga_clear_strings(&(fp->uf_args));
|
ga_clear_strings(&(fp->uf_args));
|
||||||
ga_clear_strings(&(fp->uf_lines));
|
ga_clear_strings(&(fp->uf_lines));
|
||||||
|
|
||||||
xfree(fp->uf_tml_count);
|
XFREE_CLEAR(fp->uf_tml_count);
|
||||||
fp->uf_tml_count = NULL;
|
XFREE_CLEAR(fp->uf_tml_total);
|
||||||
xfree(fp->uf_tml_total);
|
XFREE_CLEAR(fp->uf_tml_self);
|
||||||
fp->uf_tml_total = NULL;
|
|
||||||
xfree(fp->uf_tml_self);
|
|
||||||
fp->uf_tml_self = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Free all things that a function contains. Does not free the function
|
/// Free all things that a function contains. Does not free the function
|
||||||
|
Reference in New Issue
Block a user