mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
unittests: Do not unref partial which is owned by Callback structure
This commit is contained in:
parent
44cd4e63f5
commit
bac870433b
@ -468,7 +468,7 @@ local function tbl2callback(tbl)
|
||||
data={funcref=eval.xstrdup(tbl.fref)}}})
|
||||
elseif tbl.type == 'pt' then
|
||||
local pt = ffi.gc(ffi.cast('partial_T*',
|
||||
eval.xcalloc(1, ffi.sizeof('partial_T'))), eval.partial_unref)
|
||||
eval.xcalloc(1, ffi.sizeof('partial_T'))), nil)
|
||||
ret = ffi.new('Callback[1]', {{type=eval.kCallbackPartial,
|
||||
data={partial=populate_partial(pt, tbl.pt, {})}}})
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user