Skip to content

Commit

Permalink
Cleaning up ARC code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Weiß committed Feb 16, 2014
1 parent 67be755 commit aab843d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LLManager.m
Expand Up @@ -16,11 +16,11 @@ + (BOOL)launchAtLogin{
BOOL launch = NO;
CFArrayRef cfJobs = SMCopyAllJobDictionaries(kSMDomainUserLaunchd);
#if __has_feature(objc_arc)
NSArray *jobs = [NSArray arrayWithArray:(__bridge NSArray *)cfJobs];
NSArray *jobs = CFBridgingRelease(cfJobs);
#else
NSArray *jobs = [NSArray arrayWithArray:(NSArray *)cfJobs];
#endif
CFRelease(cfJobs);
#endif
if([jobs count]){
for(NSDictionary *job in jobs){
if([job[@"Label"] isEqualToString:LLHelperBundleIdentifier]){
Expand Down

0 comments on commit aab843d

Please sign in to comment.