mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
Removing self retain/release
This commit is contained in:
@@ -86,12 +86,10 @@
|
||||
}
|
||||
|
||||
- (void)send {
|
||||
[self retain];
|
||||
[self.request send];
|
||||
}
|
||||
|
||||
- (void)sendSynchronously {
|
||||
[self retain];
|
||||
RKResponse* response = [self.request sendSynchronously];
|
||||
[self loadObjectsFromResponse:response];
|
||||
}
|
||||
@@ -227,7 +225,6 @@
|
||||
}
|
||||
|
||||
- (void)loadObjectsFromResponse:(RKResponse*)response {
|
||||
[self release];
|
||||
_response = [response retain];
|
||||
|
||||
if (NO == [self encounteredErrorWhileProcessingRequest:response] && [response isSuccessful]) {
|
||||
|
||||
Reference in New Issue
Block a user