fix memleak: free struct Window members
This commit is contained in:
parent
bf2c18cc33
commit
0416be18df
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue