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
This commit is contained in:
Ilya Fedin 2024-09-28 16:42:31 +04:00
parent 31ecba29ed
commit eed43d6468

View File

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