mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-28 13:23:50 +00:00
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
5d397462e4
commit
1415eb3dd2
1 changed files with 1 additions and 2 deletions
|
|
@ -589,7 +589,6 @@ session_group_synchronize1(struct session *target, struct session *s)
|
|||
/* Then free the old winlinks list. */
|
||||
while (!RB_EMPTY(&old_windows)) {
|
||||
wl = RB_ROOT(&old_windows);
|
||||
RB_REMOVE(winlinks, &old_windows, wl);
|
||||
xfree(wl);
|
||||
winlink_remove(&old_windows, wl);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue