From 16b63451a36bedf941c1325e67c0f4a3287fe8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 13 Mar 2021 13:58:54 +0100 Subject: [PATCH] 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: --- src/backends/meta-input-settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/meta-input-settings.c b/src/backends/meta-input-settings.c index 79f72ff17..5a4ded964 100644 --- a/src/backends/meta-input-settings.c +++ b/src/backends/meta-input-settings.c @@ -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);