mirror of
https://github.com/neovim/neovim.git
synced 2025-10-12 21:06:13 +00:00
fix(options): properly free string options (#19510)
This commit is contained in:
@@ -451,7 +451,7 @@ void terminal_enter(void)
|
||||
if (save_curwin == curwin->handle) { // Else: window was closed.
|
||||
curwin->w_p_cul = save_w_p_cul;
|
||||
if (save_w_p_culopt) {
|
||||
xfree(curwin->w_p_culopt);
|
||||
free_string_option(curwin->w_p_culopt);
|
||||
curwin->w_p_culopt = save_w_p_culopt;
|
||||
}
|
||||
curwin->w_p_culopt_flags = save_w_p_culopt_flags;
|
||||
@@ -459,7 +459,7 @@ void terminal_enter(void)
|
||||
curwin->w_p_so = save_w_p_so;
|
||||
curwin->w_p_siso = save_w_p_siso;
|
||||
} else if (save_w_p_culopt) {
|
||||
xfree(save_w_p_culopt);
|
||||
free_string_option(save_w_p_culopt);
|
||||
}
|
||||
|
||||
// draw the unfocused cursor
|
||||
|
Reference in New Issue
Block a user