mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
luaref: free all references in buffer_updates
This commit is contained in:
@@ -222,11 +222,7 @@ Boolean nvim_buf_attach(uint64_t channel_id,
|
||||
return buf_updates_register(buf, channel_id, cb, send_buffer);
|
||||
|
||||
error:
|
||||
// TODO(bfredl): ASAN build should check that the ref table is empty?
|
||||
api_free_luaref(cb.on_lines);
|
||||
api_free_luaref(cb.on_bytes);
|
||||
api_free_luaref(cb.on_changedtick);
|
||||
api_free_luaref(cb.on_detach);
|
||||
buffer_update_callbacks_free(cb);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user