mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Change finalization to match MacOS-X
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27581 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d304d9ee34
commit
f8441e1092
22 changed files with 116 additions and 95 deletions
|
@ -111,8 +111,8 @@ GSRunLoopForThread(NSThread *aThread)
|
|||
- (NSMutableArray*) _components;
|
||||
@end
|
||||
|
||||
@interface NSConnection (GNUstepExtensions) <GCFinalization>
|
||||
- (void) gcFinalize;
|
||||
@interface NSConnection (GNUstepExtensions)
|
||||
- (void) finalize;
|
||||
- (retval_t) forwardForProxy: (NSDistantObject*)object
|
||||
selector: (SEL)sel
|
||||
argFrame: (arglist_t)argframe;
|
||||
|
@ -766,7 +766,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
{
|
||||
if (debug_connection)
|
||||
NSLog(@"deallocating %@", self);
|
||||
[self gcFinalize];
|
||||
[self finalize];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
@ -1742,7 +1742,7 @@ static NSLock *cached_proxies_gate = nil;
|
|||
return conn;
|
||||
}
|
||||
|
||||
- (void) gcFinalize
|
||||
- (void) finalize
|
||||
{
|
||||
CREATE_AUTORELEASE_POOL(arp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue