mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
fix(treesitter): logger memory leak
This commit is contained in:

committed by
Lewis Russell

parent
e3ce025e55
commit
8179d68dc1
@@ -1302,6 +1302,9 @@ LuaRef nlua_ref(lua_State *lstate, nlua_ref_state_t *ref_state, int index)
|
||||
return ref;
|
||||
}
|
||||
|
||||
// TODO(lewis6991): Currently cannot be run in __gc metamethods as they are
|
||||
// invoked in lua_close() which can be invoked after the ref_markers map is
|
||||
// destroyed in nlua_common_free_all_mem.
|
||||
LuaRef nlua_ref_global(lua_State *lstate, int index)
|
||||
{
|
||||
return nlua_ref(lstate, nlua_global_refs, index);
|
||||
|
Reference in New Issue
Block a user