mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 04:20:21 +08:00
Merge branch 'fix/mem-leak' of https://github.com/diederich/RestKit into feature/reboot-networking-layer
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user