From 78dc2ea7feb4e61b64dbc6c26b3de2bc30eb630a Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Thu, 26 May 2022 15:47:44 +0200 Subject: [PATCH] src/theme.c: Clean up corner buffers on finish --- src/theme.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/theme.c b/src/theme.c index 7cb56d69..533efeb1 100644 --- a/src/theme.c +++ b/src/theme.c @@ -493,5 +493,12 @@ theme_init(struct theme *theme, const char *theme_name) void theme_finish(struct theme *theme) { - ; /* nothing to free */ + wlr_buffer_drop(&theme->corner_top_left_active_normal->base); + wlr_buffer_drop(&theme->corner_top_left_inactive_normal->base); + wlr_buffer_drop(&theme->corner_top_right_active_normal->base); + wlr_buffer_drop(&theme->corner_top_right_inactive_normal->base); + theme->corner_top_left_active_normal = NULL; + theme->corner_top_left_inactive_normal = NULL; + theme->corner_top_right_active_normal = NULL; + theme->corner_top_right_inactive_normal = NULL; }