Mercurial > vim
view src/typemap @ 22230:0bbc8be90207 v8.2.1664
patch 8.2.1664: memory leak when using :mkview with a terminal buffer
Commit: https://github.com/vim/vim/commit/c2c820563441499892359da949db3c8f7f16d109
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 11 22:10:22 2020 +0200
patch 8.2.1664: memory leak when using :mkview with a terminal buffer
Problem: Memory leak when using :mkview with a terminal buffer.
Solution: Don't use a hastab for :mkview. (Rob Pilling, closes https://github.com/vim/vim/issues/6935)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 11 Sep 2020 22:15:03 +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}\")