1
0
Fork 0

input-settings: Don't eat up seat reference

MetaInputSettings unref:ed the seat on destruction, but it never ref:ed
it on construction, meaning it "stole" the reference from the rightful
owner. Make MetaInputSettings less of a thief.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1775>
This commit is contained in:
Jonas Ådahl 2021-03-13 13:58:54 +01:00 committed by Marge Bot
parent 353cdf5273
commit 16b63451a3

View file

@ -175,7 +175,7 @@ meta_input_settings_set_property (GObject *object,
switch (prop_id)
{
case PROP_SEAT:
priv->seat = g_value_get_object (value);
priv->seat = g_value_dup_object (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);