fix memleak: free struct Window members

This commit is contained in:
Michael Stapelberg 2011-01-04 22:39:45 +01:00
parent bf2c18cc33
commit 0416be18df
1 changed files with 4 additions and 0 deletions

View File

@ -193,6 +193,10 @@ void tree_close(Con *con, bool kill_window, bool dont_kill_parent) {
/* TODO: client_unmap to set state to withdrawn */ /* 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); free(con->window);
} }