diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-10-31 01:10:51 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-10-31 01:10:51 +0100 |
commit | 51a7d456daf0711aa39d35ef1d2a7927ccad1ba8 (patch) | |
tree | 7d6954cc9c1610838aa35bd6bd49cb785da263bb | |
parent | f9862cee6850a371df4c52b73396e36dea92c61b (diff) | |
download | glib-51a7d456daf0711aa39d35ef1d2a7927ccad1ba8.tar.gz |
fixup! gdbusprivate: Add support for machine-id for darwin systems
-rw-r--r-- | gio/gdbusprivate.c | 3 |
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); |