Skip to content

Commit

Permalink
prepping for ARC
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfloyd committed Apr 17, 2012
1 parent faf321e commit e831981
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FJCode/NSArray+extensions.m
Expand Up @@ -76,8 +76,9 @@ - (NSArray *) intersectionWithArray: (NSArray *) anArray
for (id object in self)
if (![anArray containsObject:object])
[copy removeObjectIdenticalTo:object];
[copy autorelease];
return [copy uniqueMembers];
NSArray* unique = [copy uniqueMembers];
[copy release];
return unique;
}

- (NSArray*)mapWithBlock:(id (^)(id obj, NSUInteger idx))block{
Expand Down

0 comments on commit e831981

Please sign in to comment.