mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 20:58:53 +00:00
Sync OpenBSD patchset 534:
Use winlink_remove() to remove old winlinks when synchronizing grouped sessions rather than doing it manually and not adjusted the reference count. Fixes crash seen by Dan Harnett.
This commit is contained in:
parent
0986001908
commit
56447d73c1
@ -1,4 +1,4 @@
|
|||||||
/* $Id: session.c,v 1.70 2009-11-04 22:42:31 tcunha Exp $ */
|
/* $Id: session.c,v 1.71 2009-11-13 16:59:19 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -588,7 +588,6 @@ session_group_synchronize1(struct session *target, struct session *s)
|
|||||||
/* Then free the old winlinks list. */
|
/* Then free the old winlinks list. */
|
||||||
while (!RB_EMPTY(&old_windows)) {
|
while (!RB_EMPTY(&old_windows)) {
|
||||||
wl = RB_ROOT(&old_windows);
|
wl = RB_ROOT(&old_windows);
|
||||||
RB_REMOVE(winlinks, &old_windows, wl);
|
winlink_remove(&old_windows, wl);
|
||||||
xfree(wl);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user