summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2022-10-31 01:10:51 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2022-10-31 01:10:51 +0100
commit51a7d456daf0711aa39d35ef1d2a7927ccad1ba8 (patch)
tree7d6954cc9c1610838aa35bd6bd49cb785da263bb
parentf9862cee6850a371df4c52b73396e36dea92c61b (diff)
downloadglib-51a7d456daf0711aa39d35ef1d2a7927ccad1ba8.tar.gz
fixup! gdbusprivate: Add support for machine-id for darwin systems
-rw-r--r--gio/gdbusprivate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c
index 1483dacb3..a80ea1655 100644
--- a/gio/gdbusprivate.c
+++ b/gio/gdbusprivate.c
@@ -2466,7 +2466,8 @@ _g_dbus_get_machine_id (GError **error)
size_t platform_uuid_length;
matching = IOServiceMatching ("IOPlatformExpertDevice");
- service = IOServiceGetMatchingService (kIOMasterPortDefault, matching);
+ service = IOServiceGetMatchingService (kIOMasterPortDefault,
+ g_steal_pointer (&matching));
io_platform_uuid =
IORegistryEntryCreateCFProperty (service, CFSTR ("IOPlatformUUID"),
kCFAllocatorDefault, 0);