Diff between edce3e3f88a3270f0a83511b8b6d7f0d409f449e and b3d5315d9e879af7eb208e06b2c9112a121b10f8

Changed Files

File Additions Deletions Status
gdbus/client.c +2 -1 modified

Full Patch

diff --git a/gdbus/client.c b/gdbus/client.c
index 4709cdd..3b00080 100644
--- a/gdbus/client.c
+++ b/gdbus/client.c
@@ -1008,7 +1008,8 @@ GDBusClient *g_dbus_client_new(DBusConnection *connection,
 
 	get_name_owner(client, client->service_name);
 
-	client->match_rules = g_ptr_array_new_full(4, g_free);
+	client->match_rules = g_ptr_array_sized_new(4);
+	g_ptr_array_set_free_func(client->match_rules, g_free);
 
 	g_ptr_array_add(client->match_rules, g_strdup_printf("type='signal',"
 				"sender='%s',path='%s',interface='%s',"