mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Add retain and release for block
This commit is contained in:
parent
bdc589ce79
commit
93b4fed381
1 changed files with 2 additions and 1 deletions
|
@ -162,6 +162,7 @@ static BOOL initialized = NO;
|
|||
- (void) dealloc
|
||||
{
|
||||
TEST_RELEASE(_key);
|
||||
TEST_RELEASE(_comparator);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
@ -222,7 +223,7 @@ static BOOL initialized = NO;
|
|||
|
||||
ASSIGN(_key, key);
|
||||
_ascending = ascending;
|
||||
_comparator = cmptr;
|
||||
ASSIGN(_comparator, cmptr);
|
||||
|
||||
return self;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue