mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
6bf539ef2c
commit
6a1be56686
2 changed files with 8 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue