From: nicm Date: Fri, 28 Apr 2017 19:12:15 +0000 (+0000) Subject: Remove a reference from the right window when removing from a winlink's X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ff6c459f184657c8d0d33a03b6c09b05d4db87f5;p=openbsd Remove a reference from the right window when removing from a winlink's list. --- diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 314e3365b26..1c2bdd0a2ad 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.190 2017/04/20 17:49:26 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.191 2017/04/28 19:12:15 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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;