]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0189: Memory leak with "above" virttext and 'relativenumber' v9.1.0189
authorzeertzjq <zeertzjq@outlook.com>
Wed, 20 Mar 2024 18:49:20 +0000 (19:49 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 20 Mar 2024 18:49:20 +0000 (19:49 +0100)
commit918b92b961ac319ddb5f24d8cade2cf6aeebc5d5
treed4aeb2d902e505b61a425ef8d2f275d616c0132e
parent9f26e5a9bcedb3caef26e9d77849ea37a3626bbf
patch 9.1.0189: Memory leak with "above" virttext and 'relativenumber'

Problem:  Memory leak with "above" virtual text and 'relativenumber'.
Solution: Free "text_props" and "text_prop_idxs" before returning.
          Also fix off-by-one error causing line number to be drawn
          beyond end of window (zeertzjq).

fixes: #14239
closes: #14241

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/drawline.c
src/testdir/dumps/Test_prop_above_below_empty_6.dump [new file with mode: 0644]
src/testdir/test_textprop.vim
src/version.c