win: fix leak of tree_reply

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-03-26 17:56:54 +00:00
parent a8f9313c9f
commit fa0a89c35a
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 1 additions and 0 deletions

View File

@ -1857,6 +1857,7 @@ struct win *attr_ret_nonnull maybe_allocate_managed_win(session_t *ps, struct wi
add_subwin_and_subscribe(&ps->subwins, &ps->c, children[i],
new->base.id);
}
free(tree_reply);
}
// Get notification when the shape of a window changes