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:
parent
f94a5c7ff9
commit
166ad34423
@ -122,7 +122,7 @@ meta_color_profile_finalize (GObject *object)
|
|||||||
CdProfile *cd_profile;
|
CdProfile *cd_profile;
|
||||||
|
|
||||||
cd_profile = color_profile->cd_profile;
|
cd_profile = color_profile->cd_profile;
|
||||||
if (!cd_profile)
|
if (!cd_profile && !color_profile->is_ready)
|
||||||
{
|
{
|
||||||
g_autoptr (GError) error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user