From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Thu, 26 May 2022 13:47:44 +0000 (+0200) Subject: src/theme.c: Clean up corner buffers on finish X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=78dc2ea7feb4e61b64dbc6c26b3de2bc30eb630a;p=proto%2Flabwc.git src/theme.c: Clean up corner buffers on finish --- 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; }