From eed43d646838cdf3de92dfbbda9a7bb996b3ec5c Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 28 Sep 2024 16:42:31 +0400 Subject: [PATCH] wayland: Clear settings_portal when going to fallback with no portal settings All other code paths with goto fallback clear it, this makes the behavior consistent with them --- gdk/wayland/gdkscreen-wayland.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c index db5c35a41b..b60e07e396 100644 --- a/gdk/wayland/gdkscreen-wayland.c +++ b/gdk/wayland/gdkscreen-wayland.c @@ -767,6 +767,7 @@ init_settings (GdkScreen *screen) g_debug ("Received no portal settings"); g_clear_pointer (&iter, g_variant_iter_free); g_clear_pointer (&ret, g_variant_unref); + g_clear_object (&screen_wayland->settings_portal); goto fallback; }