[glib/th/gdbus-slice-alloc: 8/11] gdbus: use slice allocator for ExportedSubtree
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/th/gdbus-slice-alloc: 8/11] gdbus: use slice allocator for ExportedSubtree
- Date: Mon, 29 Mar 2021 06:28:20 +0000 (UTC)
commit 249da0db69f3bc3c5f20236a79d04fbd4434432c
Author: Thomas Haller <thaller redhat com>
Date: Sun Mar 28 08:36:12 2021 +0200
gdbus: use slice allocator for ExportedSubtree
gio/gdbusconnection.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index 70d046a78..e948608e2 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -6408,7 +6408,7 @@ exported_subtree_free (ExportedSubtree *es)
_g_dbus_subtree_vtable_free (es->vtable);
g_free (es->object_path);
- g_free (es);
+ g_slice_free (ExportedSubtree, es);
}
/* called without lock held in the thread where the caller registered
@@ -6906,7 +6906,7 @@ g_dbus_connection_register_subtree (GDBusConnection *connection,
goto out;
}
- es = g_new0 (ExportedSubtree, 1);
+ es = g_slice_new0 (ExportedSubtree);
es->object_path = g_strdup (object_path);
es->connection = connection;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]