Add retain and release for block

This commit is contained in:
Gregory John Casamento 2019-08-04 22:36:10 -04:00
parent bdc589ce79
commit 93b4fed381

View file

@ -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;
}