mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Be morte parimonious with resources.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26084 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
206dc64723
commit
0b6c65c4cc
2 changed files with 11 additions and 6 deletions
|
@ -586,16 +586,17 @@ static NSLock *cached_proxies_gate = nil;
|
|||
+ (NSDistantObject*) rootProxyForConnectionWithRegisteredName: (NSString*)n
|
||||
host: (NSString*)h
|
||||
{
|
||||
CREATE_AUTORELEASE_POOL(arp);
|
||||
NSConnection *connection;
|
||||
NSDistantObject *proxy = nil;
|
||||
|
||||
connection = [self connectionWithRegisteredName: n host: h];
|
||||
if (connection != nil)
|
||||
{
|
||||
proxy = [connection rootProxy];
|
||||
proxy = RETAIN([connection rootProxy]);
|
||||
}
|
||||
|
||||
return proxy;
|
||||
RELEASE(arp);
|
||||
return AUTORELEASE(proxy);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -611,6 +612,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
+ (NSDistantObject*) rootProxyForConnectionWithRegisteredName: (NSString*)n
|
||||
host: (NSString*)h usingNameServer: (NSPortNameServer*)s
|
||||
{
|
||||
CREATE_AUTORELEASE_POOL(arp);
|
||||
NSConnection *connection;
|
||||
NSDistantObject *proxy = nil;
|
||||
|
||||
|
@ -619,10 +621,10 @@ static NSLock *cached_proxies_gate = nil;
|
|||
usingNameServer: s];
|
||||
if (connection != nil)
|
||||
{
|
||||
proxy = [connection rootProxy];
|
||||
proxy = RETAIN([connection rootProxy]);
|
||||
}
|
||||
|
||||
return proxy;
|
||||
RELEASE(arp);
|
||||
return AUTORELEASE(proxy);
|
||||
}
|
||||
|
||||
+ (void) _timeout: (NSTimer*)t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue