From 73bc07491723e834a5d2a6282286acd08822533b Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Wed, 16 Aug 2023 22:14:18 +0200 Subject: [PATCH] core: Destroy the correct opaque region when destroying a frame Freeing the window opaque region rather than the frame one when was leaking the frame opaque region and wrongly setting the window opaque region to NULL. Fixes: 82b2b7688 ("core: Add infrastructure to keep window frames' opaque regions") Part-of: --- src/core/frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/frame.c b/src/core/frame.c index 57cffbf3a..34df93df2 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -243,7 +243,7 @@ meta_window_destroy_frame (MetaWindow *window) window->frame_bounds = NULL; } - g_clear_pointer (&window->opaque_region, cairo_region_destroy); + g_clear_pointer (&frame->opaque_region, cairo_region_destroy); /* Move keybindings to window instead of frame */ meta_window_grab_keys (window);