diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-08-29 11:21:57 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-08-29 11:35:46 +0200 |
commit | 50a03c0e9975925e3198a2741c5b9fc0ad727e84 (patch) | |
tree | 60af1e770fe2ada5a4089318377264c80886dedd /runtime/lua/vim/treesitter/_fold.lua | |
parent | 6e45567b498ca8455aaf3628c10de997ac070ee1 (diff) | |
download | rneovim-50a03c0e9975925e3198a2741c5b9fc0ad727e84.tar.gz rneovim-50a03c0e9975925e3198a2741c5b9fc0ad727e84.tar.bz2 rneovim-50a03c0e9975925e3198a2741c5b9fc0ad727e84.zip |
fix(treesitter): fix another TSNode:tree() double free
Unfortunately the gc=false objects can refer to a dangling tree if the
gc=true tree was freed first. This reuses the same tree object as the
node itself is keeping alive via the uservalue of the node userdata.
(wrapped in a table due to lua 5.1 restrictions)
Diffstat (limited to 'runtime/lua/vim/treesitter/_fold.lua')
0 files changed, 0 insertions, 0 deletions