From 0416be18df58599d816cac1f1e2e43a98474b1b8 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 4 Jan 2011 22:39:45 +0100 Subject: [PATCH] fix memleak: free struct Window members --- src/tree.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tree.c b/src/tree.c index 5f2c3580..d5305d5b 100644 --- a/src/tree.c +++ b/src/tree.c @@ -193,6 +193,10 @@ void tree_close(Con *con, bool kill_window, bool dont_kill_parent) { /* TODO: client_unmap to set state to withdrawn */ } + FREE(con->window->class_class); + FREE(con->window->class_instance); + FREE(con->window->name_x); + FREE(con->window->name_json); free(con->window); }