mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
Make -drain and -release in NSAutoreleasePool do the same thing (rather than one calling the other) in non-GC mode.
Replace all -release messages sent to autorelease pools with -drain. In non-GC mode, these are equivalent. In GC mode, these trigger a collection. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33143 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3dd46a1d8c
commit
e50e12129e
28 changed files with 61 additions and 59 deletions
|
@ -681,7 +681,7 @@ static NSStringEncoding defaultEncoding;
|
|||
{
|
||||
ok = [self contentsEqualAtPath: p1 andPath: p2];
|
||||
}
|
||||
RELEASE(pool);
|
||||
[pool drain];
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
|
@ -1440,7 +1440,7 @@ static NSStringEncoding defaultEncoding;
|
|||
item = [contents objectAtIndex: i];
|
||||
next = [path stringByAppendingPathComponent: item];
|
||||
result = [self removeFileAtPath: next handler: handler];
|
||||
[arp release];
|
||||
[arp drain];
|
||||
if (result == NO)
|
||||
{
|
||||
return NO;
|
||||
|
@ -2820,7 +2820,7 @@ static inline void gsedRelease(GSEnumeratedDirectory X)
|
|||
}
|
||||
[self changeFileAttributes: attributes atPath: destinationFile];
|
||||
}
|
||||
[pool release];
|
||||
[pool drain];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
@ -2910,7 +2910,7 @@ static inline void gsedRelease(GSEnumeratedDirectory X)
|
|||
}
|
||||
[self changeFileAttributes: attributes atPath: destinationFile];
|
||||
}
|
||||
[pool release];
|
||||
[pool drain];
|
||||
return YES;
|
||||
#else
|
||||
return NO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue