mirror of
https://github.com/tmux/tmux.git
synced 2024-11-05 10:28:48 +00:00
Sync OpenBSD patchset 1074:
Check changes_timer with event_initialized before event_del.
This commit is contained in:
parent
8ff20a5c6d
commit
37e5b5d947
3
window.c
3
window.c
@ -646,7 +646,8 @@ window_pane_destroy(struct window_pane *wp)
|
|||||||
{
|
{
|
||||||
window_pane_reset_mode(wp);
|
window_pane_reset_mode(wp);
|
||||||
|
|
||||||
event_del(&wp->changes_timer);
|
if (event_initialized(&wp->changes_timer))
|
||||||
|
evtimer_del(&wp->changes_timer);
|
||||||
|
|
||||||
if (wp->fd != -1) {
|
if (wp->fd != -1) {
|
||||||
bufferevent_free(wp->event);
|
bufferevent_free(wp->event);
|
||||||
|
Loading…
Reference in New Issue
Block a user