about summary refs log tree commit diff
path: root/libnm/nm-remote-connection.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2015-07-14 19:39:12 +0200
committerMichael Biebl <biebl@debian.org>2015-07-14 19:39:12 +0200
commit34b1c46437df982495d08a8bbb8bd0b262d8af48 (patch)
tree1db29ec39d9f733922b3a33cabcc8e6486fa06aa /libnm/nm-remote-connection.c
parent50fc50153b0036516b853aa576dc435bd53ce736 (diff)
parent50a58f0fabd8a34c1b6108a107e08abe3c1ccd24 (diff)
Merge tag 'upstream/1.0.4'
Upstream version 1.0.4
Diffstat (limited to 'libnm/nm-remote-connection.c')
-rw-r--r--libnm/nm-remote-connection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libnm/nm-remote-connection.c b/libnm/nm-remote-connection.c
index 3afe7f8e..98924973 100644
--- a/libnm/nm-remote-connection.c
+++ b/libnm/nm-remote-connection.c
@@ -602,6 +602,8 @@ updated_get_settings_cb (GObject *proxy,
 		priv->visible = visible;
 		g_object_notify (G_OBJECT (self), NM_REMOTE_CONNECTION_VISIBLE);
 	}
+
+	g_object_unref (self);
 }
 
 static void
@@ -613,7 +615,8 @@ updated_cb (NMDBusSettingsConnection *proxy, gpointer user_data)
 	/* The connection got updated; request the replacement settings */
 	nmdbus_settings_connection_call_get_settings (priv->proxy,
 	                                              NULL,
-	                                              updated_get_settings_cb, self);
+	                                              updated_get_settings_cb,
+	                                              g_object_ref (self));
 }
 
 /****************************************************************/