diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-11-13 14:47:31 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-11-13 14:47:31 +0000 |
commit | 1415eb3dd249e7730b151a5cfd61c47a712a522f (patch) | |
tree | 6c702d078b1223ac30af9e6578a24b1cbc0293cf | |
parent | 5d397462e45653965e1be64644a3c635eb8ef9cb (diff) | |
download | rtmux-1415eb3dd249e7730b151a5cfd61c47a712a522f.tar.gz rtmux-1415eb3dd249e7730b151a5cfd61c47a712a522f.tar.bz2 rtmux-1415eb3dd249e7730b151a5cfd61c47a712a522f.zip |
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.
-rw-r--r-- | session.c | 3 |
1 files changed, 1 insertions, 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); } } |