mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-24 15:48:58 +01:00
When destroying a pane, reset any mode (which reenables pane
bufferevent) before freeing the bufferevent.
This commit is contained in:
parent
fc9f08235b
commit
f69ce39a6c
3
window.c
3
window.c
@ -495,6 +495,8 @@ window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit)
|
||||
void
|
||||
window_pane_destroy(struct window_pane *wp)
|
||||
{
|
||||
window_pane_reset_mode(wp);
|
||||
|
||||
if (wp->fd != -1) {
|
||||
close(wp->fd);
|
||||
bufferevent_free(wp->event);
|
||||
@ -502,7 +504,6 @@ window_pane_destroy(struct window_pane *wp)
|
||||
|
||||
input_free(wp);
|
||||
|
||||
window_pane_reset_mode(wp);
|
||||
screen_free(&wp->base);
|
||||
if (wp->saved_grid != NULL)
|
||||
grid_destroy(wp->saved_grid);
|
||||
|
Loading…
Reference in New Issue
Block a user