1
0
Fork 0

color-profile: Don't try to remove the wrong profile on finalize

If our profile wasn't fully initialized, we'd try to clean it up, in an
attempt to handle race conditions by finding synchronously then cleaning
it up, but don't attempt this if the profile is ready, as that means we
didn't create one in the first place.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2622>
This commit is contained in:
Jonas Ådahl 2022-09-13 18:18:00 +02:00 committed by Marge Bot
parent f94a5c7ff9
commit 166ad34423

View file

@ -122,7 +122,7 @@ meta_color_profile_finalize (GObject *object)
CdProfile *cd_profile;
cd_profile = color_profile->cd_profile;
if (!cd_profile)
if (!cd_profile && !color_profile->is_ready)
{
g_autoptr (GError) error = NULL;