aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/window.c b/window.c
index 7e945129..be61e73c 100644
--- a/window.c
+++ b/window.c
@@ -149,6 +149,8 @@ winlink_remove(struct winlinks *wwl, struct winlink *wl)
struct window *w = wl->window;
RB_REMOVE(winlinks, wwl, wl);
+ if (wl->status_text != NULL)
+ xfree(wl->status_text);
xfree(wl);
if (w->references == 0)