Permalink
Browse files

Forgot to release completion and failure blocks in dealloc

  • Loading branch information...
1 parent cd71519 commit 90b727fdc852fc608b0fd67b2f9652704c49f910 @jdjennin jdjennin committed Jan 14, 2012
Showing with 6 additions and 0 deletions.
  1. +3 −0 Code/Network/RKRequest.m
  2. +3 −0 Code/ObjectMapping/RKObjectLoader.m
View
3 Code/Network/RKRequest.m
@@ -176,6 +176,9 @@ - (void)dealloc {
// Cleanup a background task if there is any
[self cleanupBackgroundTask];
+
+ self.completionBlock = nil;
+ self.failureBlock = nil;
[super dealloc];
}
View
3 Code/ObjectMapping/RKObjectLoader.m
@@ -78,6 +78,9 @@ - (void)dealloc {
_result = nil;
[_serializationMIMEType release];
[_serializationMapping release];
+
+ self.objectCompletionBlock = nil;
+ self.objectFailureBlock = nil;
[super dealloc];
}

0 comments on commit 90b727f

Please sign in to comment.