summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-04-28 19:12:15 +0000
committernicm <nicm@openbsd.org>2017-04-28 19:12:15 +0000
commitff6c459f184657c8d0d33a03b6c09b05d4db87f5 (patch)
treedf3ed5a1a09bc355707e16142bbd7eabf4675a08
parentDo not put the window on the alerts queue and add a reference unless the (diff)
downloadwireguard-openbsd-ff6c459f184657c8d0d33a03b6c09b05d4db87f5.tar.xz
wireguard-openbsd-ff6c459f184657c8d0d33a03b6c09b05d4db87f5.zip
Remove a reference from the right window when removing from a winlink's
list.
-rw-r--r--usr.bin/tmux/window.c4
1 files changed, 2 insertions, 2 deletions
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 <nicholas.marriott@gmail.com>
@@ -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;