mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4668: buffer allocation failures insufficiently tested
Problem: Buffer allocation failures insufficiently tested. Solution: Add tests for memory allocation failures. (Yegappan Lakshmanan, closes #10064)
This commit is contained in:
committed by
Bram Moolenaar
parent
5018a836c0
commit
0dac1ab579
11
src/window.c
11
src/window.c
@@ -5256,10 +5256,13 @@ win_unlisted(win_T *wp)
|
||||
void
|
||||
win_free_popup(win_T *win)
|
||||
{
|
||||
if (bt_popup(win->w_buffer))
|
||||
win_close_buffer(win, DOBUF_WIPE_REUSE, FALSE);
|
||||
else
|
||||
close_buffer(win, win->w_buffer, 0, FALSE, FALSE);
|
||||
if (win->w_buffer != NULL)
|
||||
{
|
||||
if (bt_popup(win->w_buffer))
|
||||
win_close_buffer(win, DOBUF_WIPE_REUSE, FALSE);
|
||||
else
|
||||
close_buffer(win, win->w_buffer, 0, FALSE, FALSE);
|
||||
}
|
||||
# if defined(FEAT_TIMERS)
|
||||
if (win->w_popup_timer != NULL)
|
||||
stop_timer(win->w_popup_timer);
|
||||
|
Reference in New Issue
Block a user