Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Forgot to release completion and failure blocks in dealloc

  • Loading branch information...
commit 90b727fdc852fc608b0fd67b2f9652704c49f910 1 parent cd71519
jdjennin jdjennin authored
Showing with 6 additions and 0 deletions.
  1. +3 −0  Code/Network/RKRequest.m
  2. +3 −0  Code/ObjectMapping/RKObjectLoader.m
3  Code/Network/RKRequest.m
View
@@ -176,6 +176,9 @@ - (void)dealloc {
// Cleanup a background task if there is any
[self cleanupBackgroundTask];
+
+ self.completionBlock = nil;
+ self.failureBlock = nil;
[super dealloc];
}
3  Code/ObjectMapping/RKObjectLoader.m
View
@@ -78,6 +78,9 @@ - (void)dealloc {
_result = nil;
[_serializationMIMEType release];
[_serializationMapping release];
+
+ self.objectCompletionBlock = nil;
+ self.objectFailureBlock = nil;
[super dealloc];
}
Please sign in to comment.
Something went wrong with that request. Please try again.