Index: util/mac/launchd.mm |
diff --git a/util/mac/launchd.mm b/util/mac/launchd.mm |
index 1b723555695f5b00a51aba706b485fdd4cb55d85..ef5a6061a88373885a452946332f3eb6fccf8326 100644 |
--- a/util/mac/launchd.mm |
+++ b/util/mac/launchd.mm |
@@ -51,7 +51,8 @@ launch_data_t CFPropertyToLaunchData(CFPropertyListRef property_cf) { |
return nullptr; |
} |
- LaunchDataDictInsert(dictionary_launch, value_launch, [key UTF8String]); |
+ LaunchDataDictInsert( |
+ dictionary_launch.get(), value_launch, [key UTF8String]); |
} |
data_launch = dictionary_launch.release(); |
@@ -71,7 +72,7 @@ launch_data_t CFPropertyToLaunchData(CFPropertyListRef property_cf) { |
return nullptr; |
} |
- LaunchDataArraySetIndex(array_launch, element_launch, index++); |
+ LaunchDataArraySetIndex(array_launch.get(), element_launch, index++); |
} |
data_launch = array_launch.release(); |