diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-16 21:54:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 21:54:16 -0400 |
commit | c2c5a3f5f6bdc061acae4e0583c4fd85c7ed21ac (patch) | |
tree | 02f3205870487dbedb981a1770a6ec77c8894c15 /sway/tree/container.c | |
parent | fe24f58297b4fb7bad94a5bad1593f12a764356c (diff) | |
parent | f0212d66eee61517ab1bb0f8bb68784d50e14c9a (diff) |
Merge pull request #1982 from RyanDwyer/show-marks
Implement show_marks
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index a17b20f7..e47338e7 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -123,13 +123,12 @@ static void _container_destroy(struct sway_container *cont) { if (cont->name) { free(cont->name); } - if (cont->title_focused) { - // If one is set then all of these are set - wlr_texture_destroy(cont->title_focused); - wlr_texture_destroy(cont->title_focused_inactive); - wlr_texture_destroy(cont->title_unfocused); - wlr_texture_destroy(cont->title_urgent); - } + + wlr_texture_destroy(cont->title_focused); + wlr_texture_destroy(cont->title_focused_inactive); + wlr_texture_destroy(cont->title_unfocused); + wlr_texture_destroy(cont->title_urgent); + list_free(cont->children); cont->children = NULL; free(cont); @@ -592,6 +591,7 @@ static void update_title_texture(struct sway_container *con, } if (*texture) { wlr_texture_destroy(*texture); + *texture = NULL; } if (!con->formatted_title) { return; |