]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/theme.c: Clean up corner buffers on finish
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 26 May 2022 13:47:44 +0000 (15:47 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 26 May 2022 21:19:56 +0000 (22:19 +0100)
src/theme.c

index 7cb56d69a70b48bd5bf0effbea992b34abb26626..533efeb1b9e3c41d068db8bfd0d1263affa721b0 100644 (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;
 }