src/theme.c: Clean up corner buffers on finish

This commit is contained in:
Consolatis 2022-05-26 15:47:44 +02:00 committed by Johan Malm
parent ae9314c65e
commit 78dc2ea7fe

View file

@ -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;
}