mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
|
@ -1047,11 +1047,7 @@ static inline BOOL timerInvalidated(NSTimer *t)
|
|||
|
||||
RELEASE(arp);
|
||||
|
||||
if (when != nil)
|
||||
{
|
||||
AUTORELEASE(when);
|
||||
}
|
||||
else
|
||||
if (when == nil)
|
||||
{
|
||||
GSIArray watchers = context->watchers;
|
||||
unsigned i = GSIArrayCount(watchers);
|
||||
|
@ -1070,6 +1066,12 @@ static inline BOOL timerInvalidated(NSTimer *t)
|
|||
when = theFuture;
|
||||
}
|
||||
}
|
||||
#if !GS_WITH_GC
|
||||
else
|
||||
{
|
||||
AUTORELEASE(when);
|
||||
}
|
||||
#endif
|
||||
|
||||
NSDebugMLLog(@"NSRunLoop", @"limit date %f in %@",
|
||||
[when timeIntervalSinceReferenceDate], mode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue