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:
parent
31ecba29ed
commit
eed43d6468
@ -767,6 +767,7 @@ init_settings (GdkScreen *screen)
|
|||||||
g_debug ("Received no portal settings");
|
g_debug ("Received no portal settings");
|
||||||
g_clear_pointer (&iter, g_variant_iter_free);
|
g_clear_pointer (&iter, g_variant_iter_free);
|
||||||
g_clear_pointer (&ret, g_variant_unref);
|
g_clear_pointer (&ret, g_variant_unref);
|
||||||
|
g_clear_object (&screen_wayland->settings_portal);
|
||||||
|
|
||||||
goto fallback;
|
goto fallback;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user