mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
garbage collection fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27578 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2c9683175f
commit
d304d9ee34
65 changed files with 707 additions and 214 deletions
|
@ -252,10 +252,10 @@ static Class NSURLHandleClass = 0;
|
|||
{
|
||||
id o = client;
|
||||
|
||||
RETAIN(o);
|
||||
IF_NO_GC([o retain];)
|
||||
[_clients removeObjectIdenticalTo: o];
|
||||
[_clients addObject: o];
|
||||
RELEASE(o);
|
||||
IF_NO_GC([o release];)
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -312,12 +312,12 @@ static Class NSURLHandleClass = 0;
|
|||
*/
|
||||
- (void) cancelLoadInBackground
|
||||
{
|
||||
RETAIN(self);
|
||||
IF_NO_GC([self retain];)
|
||||
[_clients makeObjectsPerformSelector:
|
||||
@selector(URLHandleResourceDidCancelLoading:)
|
||||
withObject: self];
|
||||
[self endLoadInBackground];
|
||||
RELEASE(self);
|
||||
IF_NO_GC([self release];)
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
|
@ -631,7 +631,7 @@ static NSLock *fileLock = nil;
|
|||
NS_DURING
|
||||
{
|
||||
obj = [fileCache objectForKey: path];
|
||||
AUTORELEASE(RETAIN(obj));
|
||||
IF_NO_GC([[obj retain] autorelease];)
|
||||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
|
@ -723,7 +723,7 @@ static NSLock *fileLock = nil;
|
|||
if (obj != nil)
|
||||
{
|
||||
DESTROY(self);
|
||||
RETAIN(obj);
|
||||
IF_NO_GC([obj retain];)
|
||||
}
|
||||
}
|
||||
NS_HANDLER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue