mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
Tidyup for GC
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
65b8d0067c
commit
eb1c061d9b
30 changed files with 137 additions and 111 deletions
|
@ -544,10 +544,10 @@ static NSFileManager* defaultManager = nil;
|
|||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
CREATE_AUTORELEASE_POOL(arp);
|
||||
NSString *item;
|
||||
NSString *next;
|
||||
BOOL result;
|
||||
CREATE_AUTORELEASE_POOL(arp);
|
||||
|
||||
item = [contents objectAtIndex: i];
|
||||
next = [path stringByAppendingPathComponent: item];
|
||||
|
@ -673,10 +673,10 @@ static NSFileManager* defaultManager = nil;
|
|||
|
||||
for (index = 0; ok == YES && index < [a1 count]; index++)
|
||||
{
|
||||
CREATE_AUTORELEASE_POOL(pool);
|
||||
NSString *n = [a1 objectAtIndex: index];
|
||||
NSString *p1;
|
||||
NSString *p2;
|
||||
CREATE_AUTORELEASE_POOL(pool);
|
||||
|
||||
p1 = [path1 stringByAppendingPathComponent: n];
|
||||
p2 = [path2 stringByAppendingPathComponent: n];
|
||||
|
@ -1342,7 +1342,7 @@ static NSFileManager* defaultManager = nil;
|
|||
_directoryAttributes = [[NSFileManager defaultManager]
|
||||
fileAttributesAtPath: _topPath
|
||||
traverseLink: _flags.isFollowing];
|
||||
RETAIN(_directoryAttributes);
|
||||
IF_NO_GC(RETAIN(_directoryAttributes));
|
||||
}
|
||||
return _directoryAttributes;
|
||||
}
|
||||
|
@ -1354,7 +1354,7 @@ static NSFileManager* defaultManager = nil;
|
|||
_fileAttributes = [[NSFileManager defaultManager]
|
||||
fileAttributesAtPath: _currentFilePath
|
||||
traverseLink: _flags.isFollowing];
|
||||
RETAIN(_fileAttributes);
|
||||
IF_NO_GC(RETAIN(_fileAttributes));
|
||||
}
|
||||
return _fileAttributes;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue