Mercurial > vim
view src/typemap @ 24903:99324f6b535a v8.2.2989
patch 8.2.2989: Vim9: memory leak when debugging a :def function
Commit: https://github.com/vim/vim/commit/c2dec4cac4087af90dd4f64f4912a8e14a5fdd56
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 13 15:39:00 2021 +0200
patch 8.2.2989: Vim9: memory leak when debugging a :def function
Problem: Vim9: memory leak when debugging a :def function.
Solution: Free the debug instructions.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Jun 2021 15:45:02 +0200 |
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}\")