mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
make code more robust when there's no autorelease pool.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35706 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2f1b8f47c3
commit
e02ff90f23
8 changed files with 88 additions and 73 deletions
|
@ -3116,7 +3116,7 @@ static NSSet *fileKeys = nil;
|
|||
{
|
||||
if (fileKeys == nil)
|
||||
{
|
||||
fileKeys = [NSSet setWithObjects:
|
||||
fileKeys = [[NSSet alloc] initWithObjects:
|
||||
NSFileAppendOnly,
|
||||
NSFileCreationDate,
|
||||
NSFileDeviceIdentifier,
|
||||
|
@ -3136,7 +3136,6 @@ static NSSet *fileKeys = nil;
|
|||
NSFileSystemNumber,
|
||||
NSFileType,
|
||||
nil];
|
||||
IF_NO_GC([fileKeys retain];)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue