From bcd6b416749cbac712c29ee07049e98c5930c800 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 28 Apr 2017 19:12:15 +0000 Subject: [PATCH] Remove a reference from the right window when removing from a winlink's list. --- window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window.c b/window.c index b493b4bf..1f697fac 100644 --- a/window.c +++ b/window.c @@ -186,7 +186,7 @@ winlink_set_window(struct winlink *wl, struct window *w) { if (wl->window != NULL) { TAILQ_REMOVE(&wl->window->winlinks, wl, wentry); - window_remove_ref(w); + window_remove_ref(wl->window); } TAILQ_INSERT_TAIL(&w->winlinks, wl, wentry); wl->window = w;