aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--session.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/session.c b/session.c
index 8d22ac77..db2eb779 100644
--- a/session.c
+++ b/session.c
@@ -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);
}
}