mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Updates to move towards ARC
This commit is contained in:
parent
0cd9843f5f
commit
2e07244f8e
15 changed files with 86 additions and 70 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue