From 5672f2ce6bc87dc5c5215576f8f9a2b6bdadc07a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 20 Mar 2012 14:06:44 +0000 Subject: [PATCH] Check changes_timer with event_initialized before event_del. --- window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/window.c b/window.c index 704c7a16..34214e71 100644 --- a/window.c +++ b/window.c @@ -649,7 +649,8 @@ window_pane_destroy(struct window_pane *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) { bufferevent_free(wp->event);