Merge branch 'fix/mem-leak' of https://github.com/diederich/RestKit into feature/reboot-networking-layer

This commit is contained in:
Blake Watters
2012-09-10 10:49:43 -04:00
2 changed files with 10 additions and 0 deletions

View File

@@ -39,11 +39,15 @@
/**
The callback dispatch queue on success. If `NULL` (default), the main queue is used.
The queue is retained while this operation is living
*/
@property (nonatomic) dispatch_queue_t successCallbackQueue;
/**
The callback dispatch queue on failure. If `NULL` (default), the main queue is used.
The queue is retained while this operation is living
*/
@property (nonatomic) dispatch_queue_t failureCallbackQueue;

View File

@@ -29,6 +29,12 @@ static inline NSString * RKDescriptionForRequest(NSURLRequest *request)
@implementation RKObjectRequestOperation
- (void)dealloc
{
if(_failureCallbackQueue) dispatch_release(_failureCallbackQueue);
if(_successCallbackQueue) dispatch_release(_successCallbackQueue);
}
- (id)initWithRequest:(NSURLRequest *)request responseDescriptors:(NSArray *)responseDescriptors
{
NSParameterAssert(request);