Updates to move towards ARC

This commit is contained in:
Richard Frith-Macdonald 2020-02-08 16:42:17 +00:00
parent 0cd9843f5f
commit 2e07244f8e
15 changed files with 86 additions and 70 deletions

View file

@ -1101,7 +1101,7 @@ GSPrivateReturnAddresses(NSUInteger **returns)
{
if (nil == addresses && numReturns > FrameOffset)
{
CREATE_AUTORELEASE_POOL(pool);
ENTER_POOL
NSInteger count = numReturns - FrameOffset;
NSValue *objects[count];
NSUInteger index;
@ -1112,7 +1112,7 @@ GSPrivateReturnAddresses(NSUInteger **returns)
objects[index] = [NSValue valueWithPointer: ptrs[FrameOffset+index]];
}
addresses = [[NSArray alloc] initWithObjects: objects count: count];
DESTROY(pool);
LEAVE_POOL
}
return addresses;
}