mirror of
https://github.com/neovim/neovim.git
synced 2025-12-13 10:02:49 +00:00
fix(tests): use correct signature for unpacker_teardown()
This commit is contained in:
@@ -14,7 +14,7 @@ local to_cstr = t.to_cstr
|
|||||||
--- @return Unpacker* unpacker `unpacker[0]` to dereference
|
--- @return Unpacker* unpacker `unpacker[0]` to dereference
|
||||||
local function make_unpacker()
|
local function make_unpacker()
|
||||||
return ffi.gc(ffi.cast('Unpacker*', lib.xcalloc(1, ffi.sizeof('Unpacker'))), function(unpacker)
|
return ffi.gc(ffi.cast('Unpacker*', lib.xcalloc(1, ffi.sizeof('Unpacker'))), function(unpacker)
|
||||||
lib.unpacker_teardown(unpacker, nil, nil)
|
lib.unpacker_teardown(unpacker)
|
||||||
lib.xfree(unpacker)
|
lib.xfree(unpacker)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user