Permalink
Browse files

Merge pull request #234 from VladimirTechMan/change_to_dnsevidencesource

Minor improvement to DNSEvidenceSource
  • Loading branch information...
2 parents 5f745bb + b1e5596 commit 3a4b7d8170e5e735675f3efe419361b9d08c631c @dustinrue committed Apr 7, 2013
Showing with 7 additions and 7 deletions.
  1. +7 −7 Source/DNSEvidenceSource.m
View
@@ -175,10 +175,10 @@ - (void)start {
return;
}
- CFRetain(store);
+ [self retain];
dispatch_async(queue, ^{
[self doFullUpdateFromStore:store];
- CFRelease(store);
+ [self release];
});
running = YES;
@@ -198,12 +198,12 @@ - (void)doStop {
}
if (queue) {
+ [self retain];
dispatch_async(queue, ^{
- @autoreleasepool {
- self.searchDomains = [NSSet set];
- self.dnsServers = [NSSet set];
- [self setDataCollected:NO];
- }
+ self.searchDomains = [NSSet set];
+ self.dnsServers = [NSSet set];
+ [self setDataCollected:NO];
+ [self release];
});
dispatch_release(queue);
queue = NULL;

0 comments on commit 3a4b7d8

Please sign in to comment.