fixup! gdbusprivate: Add support for machine-id for darwin systems

This commit is contained in:
Marco Trevisan (Treviño) 2022-10-31 01:10:51 +01:00
parent f9862cee68
commit 51a7d456da

View File

@ -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);