mirror of
https://github.com/tmux/tmux.git
synced 2026-10-14 15:04:50 +00:00
Merge remote-tracking branch 'refs/remotes/tmux-openbsd/master'
* refs/remotes/tmux-openbsd/master: Add commands to copy mode to select, pipe and open OSC 133 command output, from Michael Grant. Fix bugs with empty panes and load-buffer -w, GitHub issue 5701 from Alexandre Fiori. Track allocations in yacc to avoid leaking when parsing commands, GitHub issue 5632 from Jeong, Heon. Fix commands being lost when chained with assignment, GitHub issue 5702 from Jeong, Heon
This commit is contained in:
8
window.c
8
window.c
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: window.c,v 1.384 2026/10/02 12:48:52 nicm Exp $ */
|
||||
/* $OpenBSD: window.c,v 1.385 2026/10/08 07:06:26 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -1592,13 +1592,15 @@ window_pane_destroy(struct window_pane *wp)
|
||||
window_pane_free_modes(wp);
|
||||
screen_write_sync_clear_dirty(wp);
|
||||
|
||||
if (wp->event != NULL) {
|
||||
bufferevent_free(wp->event);
|
||||
wp->event = NULL;
|
||||
}
|
||||
if (wp->fd != -1) {
|
||||
#ifdef HAVE_UTEMPTER
|
||||
utempter_remove_record(wp->fd);
|
||||
kill(getpid(), SIGCHLD);
|
||||
#endif
|
||||
bufferevent_free(wp->event);
|
||||
wp->event = NULL;
|
||||
close(wp->fd);
|
||||
wp->fd = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user