Bugfix: Also free() the head of slist/tailq (Thx dothebart)
This commit is contained in:
parent
d9f35859fa
commit
dc7cfeaa4f
|
@ -250,7 +250,7 @@ void parse_workspaces_json(char *json) {
|
|||
}
|
||||
|
||||
/*
|
||||
* free() all workspace data-structures
|
||||
* free() all workspace data-structures. Does not free() the heads of the tailqueues.
|
||||
*
|
||||
*/
|
||||
void free_workspaces() {
|
||||
|
|
|
@ -585,8 +585,10 @@ void clean_xcb() {
|
|||
SLIST_FOREACH(o_walk, outputs, slist) {
|
||||
destroy_window(o_walk);
|
||||
FREE_TAILQ(o_walk->workspaces, i3_ws);
|
||||
FREE(o_walk->workspaces);
|
||||
}
|
||||
FREE_SLIST(outputs, i3_output);
|
||||
FREE(outputs);
|
||||
|
||||
xcb_disconnect(xcb_connection);
|
||||
|
||||
|
|
Loading…
Reference in New Issue