mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fixed NSOperation completion block memory mgmt.
This commit is contained in:
parent
958dec0db2
commit
cc56c9cc97
2 changed files with 6 additions and 1 deletions
|
@ -217,6 +217,7 @@ static NSArray *empty = nil;
|
|||
RELEASE(internal->dependencies);
|
||||
RELEASE(internal->cond);
|
||||
RELEASE(internal->lock);
|
||||
RELEASE(internal->completionBlock);
|
||||
GS_DESTROY_INTERNAL(NSOperation);
|
||||
}
|
||||
[super dealloc];
|
||||
|
@ -381,7 +382,7 @@ static NSArray *empty = nil;
|
|||
|
||||
- (void) setCompletionBlock: (GSOperationCompletionBlock)aBlock
|
||||
{
|
||||
internal->completionBlock = aBlock;
|
||||
ASSIGNCOPY(internal->completionBlock, aBlock);
|
||||
}
|
||||
|
||||
- (void) setQueuePriority: (NSOperationQueuePriority)pri
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue