diff options
author | Thomas Haller <thaller@redhat.com> | 2021-03-29 08:26:30 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-03-29 08:26:32 +0200 |
commit | a4c17bf089c9d0fb881005839125101473f0cff6 (patch) | |
tree | d3f00449d497f630a535faaaa9d77150575d702f | |
parent | fa49e460c82209b2518354f0d402280f7d790dbe (diff) | |
download | glib-th/gdbus-slice-alloc.tar.gz |
gdbus: use slice allocator for ExportedObjectth/gdbus-slice-alloc
-rw-r--r-- | gio/gdbusconnection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c index 5aab37c22..a5a9966a1 100644 --- a/gio/gdbusconnection.c +++ b/gio/gdbusconnection.c @@ -4066,7 +4066,7 @@ exported_object_free (ExportedObject *eo) { g_free (eo->object_path); g_hash_table_unref (eo->map_if_name_to_ei); - g_free (eo); + g_slice_free (ExportedObject, eo); } typedef struct @@ -5201,7 +5201,7 @@ g_dbus_connection_register_object (GDBusConnection *connection, eo = g_hash_table_lookup (connection->map_object_path_to_eo, object_path); if (eo == NULL) { - eo = g_new0 (ExportedObject, 1); + eo = g_slice_new (ExportedObject); eo->object_path = g_strdup (object_path); eo->connection = connection; eo->map_if_name_to_ei = g_hash_table_new_full (g_str_hash, |