diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 47ba88a9..e47338e7 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -123,13 +123,12 @@ static void _container_destroy(struct sway_container *cont) { | |||
123 | if (cont->name) { | 123 | if (cont->name) { |
124 | free(cont->name); | 124 | free(cont->name); |
125 | } | 125 | } |
126 | if (cont->title_focused) { | 126 | |
127 | // If one is set then all of these are set | 127 | wlr_texture_destroy(cont->title_focused); |
128 | wlr_texture_destroy(cont->title_focused); | 128 | wlr_texture_destroy(cont->title_focused_inactive); |
129 | wlr_texture_destroy(cont->title_focused_inactive); | 129 | wlr_texture_destroy(cont->title_unfocused); |
130 | wlr_texture_destroy(cont->title_unfocused); | 130 | wlr_texture_destroy(cont->title_urgent); |
131 | wlr_texture_destroy(cont->title_urgent); | 131 | |
132 | } | ||
133 | list_free(cont->children); | 132 | list_free(cont->children); |
134 | cont->children = NULL; | 133 | cont->children = NULL; |
135 | free(cont); | 134 | free(cont); |