Mercurial > vim
view src/typemap @ 29455:e1e99ef28040 v9.0.0069
patch 9.0.0069: leaking memory when using text prop with inserted text
Commit: https://github.com/vim/vim/commit/0c740e745a5f8702fd87689615a9684664e40764
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 25 19:07:04 2022 +0100
patch 9.0.0069: leaking memory when using text prop with inserted text
Problem: Leaking memory when using text prop with inserted text.
Solution: Clear the growarray with text.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 Jul 2022 20:15: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}\")