mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Small tweaks to NSGarbageCollector.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33402 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
861d46e8db
commit
3f83dabfaa
1 changed files with 3 additions and 2 deletions
|
@ -64,6 +64,7 @@ void CFRelease(id obj)
|
|||
if (objc_collecting_enabled())
|
||||
{
|
||||
collector = [self alloc];
|
||||
objc_startCollectorThread();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -101,8 +102,8 @@ void CFRelease(id obj)
|
|||
{
|
||||
if (self != collector)
|
||||
{
|
||||
[self dealloc];
|
||||
self = nil;
|
||||
[self release];
|
||||
self = collector;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue