From: Michael Stapelberg Date: Tue, 4 Jan 2011 21:39:45 +0000 (+0100) Subject: fix memleak: free struct Window members X-Git-Tag: tree-pr2~139 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0416be18df58599d816cac1f1e2e43a98474b1b8;p=i3%2Fi3 fix memleak: free struct Window members --- 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); }