aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-08 04:36:23 +0300
committerZyX <kp-pav@yandex.ru>2017-04-09 03:36:17 +0300
commitbac870433b828ea3a850e61710b636c62ecaa5ed (patch)
tree76d1985e9dbe977c1b411a3fded09e62c7cdd543
parent44cd4e63f58fe240b1d8259600a60757f1bd2ce8 (diff)
downloadrneovim-bac870433b828ea3a850e61710b636c62ecaa5ed.tar.gz
rneovim-bac870433b828ea3a850e61710b636c62ecaa5ed.tar.bz2
rneovim-bac870433b828ea3a850e61710b636c62ecaa5ed.zip
unittests: Do not unref partial which is owned by Callback structure
-rw-r--r--test/unit/eval/helpers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/eval/helpers.lua b/test/unit/eval/helpers.lua
index fa76113756..5bc482216e 100644
--- a/test/unit/eval/helpers.lua
+++ b/test/unit/eval/helpers.lua
@@ -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