Mercurial > vim
comparison src/buffer.c @ 13121:3321582cae78 v8.0.1435
patch 8.0.1435: memory leak in test_arabic
commit https://github.com/vim/vim/commit/501383236d203bacad758e82e47a07b877a3b63b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 28 17:05:16 2018 +0100
patch 8.0.1435: memory leak in test_arabic
Problem: Memory leak in test_arabic.
Solution: Free the from and to parts. (Christian Brabandt, closes https://github.com/vim/vim/issues/2569)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 28 Jan 2018 17:15:05 +0100 |
parents | 197a08152ad5 |
children | 6559e98f3e74 |
comparison
equal
deleted
inserted
replaced
13120:9a04f8e88adc | 13121:3321582cae78 |
---|---|
2210 clear_string_option(&buf->b_p_fo); | 2210 clear_string_option(&buf->b_p_fo); |
2211 clear_string_option(&buf->b_p_flp); | 2211 clear_string_option(&buf->b_p_flp); |
2212 clear_string_option(&buf->b_p_isk); | 2212 clear_string_option(&buf->b_p_isk); |
2213 #ifdef FEAT_KEYMAP | 2213 #ifdef FEAT_KEYMAP |
2214 clear_string_option(&buf->b_p_keymap); | 2214 clear_string_option(&buf->b_p_keymap); |
2215 keymap_clear(&buf->b_kmap_ga); | |
2215 ga_clear(&buf->b_kmap_ga); | 2216 ga_clear(&buf->b_kmap_ga); |
2216 #endif | 2217 #endif |
2217 #ifdef FEAT_COMMENTS | 2218 #ifdef FEAT_COMMENTS |
2218 clear_string_option(&buf->b_p_com); | 2219 clear_string_option(&buf->b_p_com); |
2219 #endif | 2220 #endif |