Minor runloop fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9427 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-03-17 11:55:05 +00:00
parent 6bf539ef2c
commit 6a1be56686
2 changed files with 8 additions and 3 deletions

View file

@ -4,6 +4,8 @@
* Source/NSThread.m: Revise scheme for deallocation of thread
dictionary ... keep it operating to avoid problems with stuff
trying to use it while deing deallocated. Log memory leaks.
* Source/NSRunLoop.m: ([+currentRunLoop]) return nil if there is
no thread dictionary available (shouldn't happen).
* Source/NSString.m: MINGW path handling fixes by Michael Scheibler
stringByAppendingPath, isAbsolurtePath, and stringByStandardizingPath.

View file

@ -714,9 +714,12 @@ const NSMapTableValueCallBacks ArrayMapValueCallBacks =
r = [d objectForKey: key];
if (r == nil)
{
r = [NSRunLoop new];
[d setObject: r forKey: key];
RELEASE(r);
if (d != nil)
{
r = [self new];
[d setObject: r forKey: key];
RELEASE(r);
}
}
return r;
}