mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
|
@ -721,7 +721,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
{
|
||||
proxy = [[connection rootProxy] retain];
|
||||
}
|
||||
[arp release];
|
||||
[arp drain];
|
||||
return [proxy autorelease];
|
||||
}
|
||||
|
||||
|
@ -749,7 +749,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
{
|
||||
proxy = RETAIN([connection rootProxy]);
|
||||
}
|
||||
[arp release];
|
||||
[arp drain];
|
||||
return AUTORELEASE(proxy);
|
||||
}
|
||||
|
||||
|
@ -1314,7 +1314,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
[[NSNotificationCenter defaultCenter]
|
||||
postNotificationName: NSConnectionDidDieNotification
|
||||
object: self];
|
||||
[arp release];
|
||||
[arp drain];
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1954,7 +1954,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
|
||||
DESTROY(IrefGate);
|
||||
|
||||
[arp release];
|
||||
[arp drain];
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue