mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Minor fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17337 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
778c3a3c7c
commit
b3695601ed
2 changed files with 5 additions and 2 deletions
|
@ -1138,7 +1138,7 @@ static unsigned urlAlign;
|
|||
[clientsLock lock];
|
||||
if (_clients == 0)
|
||||
{
|
||||
_clients = NSCreateMapTable (NSNonRetainedObjectMapKeyCallBacks,
|
||||
_clients = NSCreateMapTable (NSObjectMapKeyCallBacks,
|
||||
NSNonRetainedObjectMapValueCallBacks, 0);
|
||||
}
|
||||
NSMapInsert((NSMapTable*)_clients, (void*)handle, (void*)client);
|
||||
|
@ -1566,6 +1566,8 @@ static unsigned urlAlign;
|
|||
{
|
||||
id c = clientForHandle(_clients, sender);
|
||||
|
||||
RETAIN(self);
|
||||
[sender removeClient: self];
|
||||
if (c != nil)
|
||||
{
|
||||
if ([c respondsToSelector: @selector(URLResourceDidFinishLoading:)])
|
||||
|
@ -1576,7 +1578,7 @@ static unsigned urlAlign;
|
|||
NSMapRemove((NSMapTable*)_clients, (void*)sender);
|
||||
[clientsLock unlock];
|
||||
}
|
||||
[sender removeClient: self];
|
||||
RELEASE(self);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue