view src/typemap @ 16009:3b524e8110ab v8.1.1010

patch 8.1.1010: Lua interface leaks memory commit https://github.com/vim/vim/commit/713bf9e996d8c9a2cc5003ee0c95f12055756ae5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 16 16:38:41 2019 +0100 patch 8.1.1010: Lua interface leaks memory Problem: Lua interface leaks memory. Solution: Clear typeval after copying it.
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Mar 2019 16:45:05 +0100
parents dec4338a7da2
children
line wrap: on
line source

TYPEMAP
VIWIN	T_VIOBJNOMUNGE
VIBUF	T_VIOBJNOMUNGE

INPUT
T_VIOBJNOMUNGE
	if (sv_isa($arg, \"${ntype}\")) {
	    IV tmp = SvIV((SV*)SvRV($arg));
	    $var = INT2PTR($type, tmp);
	    if (!tmp)
		croak(\"$ntype no longer exists\");
	}
	else
	    croak(\"$var is not of type ${ntype}\")