diff --git a/src/x11/window-props.c b/src/x11/window-props.c index 26a110785..31181b04e 100644 --- a/src/x11/window-props.c +++ b/src/x11/window-props.c @@ -715,7 +715,7 @@ reload_opaque_region (MetaWindow *window, else if (window->frame && value->source_xwindow == window->frame->xwindow) meta_frame_set_opaque_region (window->frame, opaque_region); - cairo_region_destroy (opaque_region); + g_clear_pointer (&opaque_region, cairo_region_destroy); } static void