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:39:47 +04:00
parent 630699fb68
commit 5670fea30d

View File

@ -1994,6 +1994,7 @@ init_settings (GdkDisplay *display)
g_debug ("Received no portal settings");
g_clear_pointer (&iter, g_variant_iter_free);
g_clear_pointer (&ret, g_variant_unref);
g_clear_object (&display_wayland->settings_portal);
goto fallback;
}