aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMServiceManagementTestingHarness.c
diff options
context:
space:
mode:
Diffstat (limited to 'Foundation/GTMServiceManagementTestingHarness.c')
-rw-r--r--Foundation/GTMServiceManagementTestingHarness.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Foundation/GTMServiceManagementTestingHarness.c b/Foundation/GTMServiceManagementTestingHarness.c
index 2b99758..bb86071 100644
--- a/Foundation/GTMServiceManagementTestingHarness.c
+++ b/Foundation/GTMServiceManagementTestingHarness.c
@@ -21,9 +21,11 @@
int main(int argc, const char** argv) {
#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
CFErrorRef error = NULL;
- CFDictionaryRef dict = GTMSMJobCheckIn(&error);
+ CFDictionaryRef dict = GTMSMCopyJobCheckInDictionary(&error);
if (!dict) {
CFShow(error);
+ } else {
+ CFRelease(dict);
}
#endif // if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
return 0;