Skip to content

Commit

Permalink
1.Adjust format 2.add releaseBlocksOnMainThread when dealloc
Browse files Browse the repository at this point in the history
  • Loading branch information
whlsxl committed Oct 21, 2013
1 parent 882bef6 commit a0e88c8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Classes/ASIHTTPRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ - (void)dealloc
}
[self cancelLoad];
[_statusTimer invalidate];
#if NS_BLOCKS_AVAILABLE
[self releaseBlocksOnMainThread];
#endif
}

#if NS_BLOCKS_AVAILABLE
Expand Down Expand Up @@ -1211,8 +1214,7 @@ - (void)startRequest
kCFNull,kCFStreamSSLPeerName,
nil];

CFReadStreamSetProperty((__bridge CFReadStreamRef)[self readStream], kCFStreamPropertySSLSettings,
(__bridge CFTypeRef)sslProperties);
CFReadStreamSetProperty((__bridge CFReadStreamRef)[self readStream], kCFStreamPropertySSLSettings, (__bridge CFTypeRef)sslProperties);
}

// Tell CFNetwork to use a client certificate
Expand Down Expand Up @@ -1948,7 +1950,7 @@ - (void)requestReceivedResponseHeaders:(NSMutableDictionary *)newResponseHeaders

if (_delegate && [_delegate respondsToSelector:_didReceiveResponseHeadersSelector]) {
ASISuppressPerformSelectorLeakWarning(
[_delegate performSelector:_didReceiveResponseHeadersSelector withObject:self withObject:newResponseHeaders];
[_delegate performSelector:_didReceiveResponseHeadersSelector withObject:self withObject:newResponseHeaders];
);
}

Expand Down

0 comments on commit a0e88c8

Please sign in to comment.