mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Avoid memory leaks by implementing hash and isEqual: for credentials
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23088 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
83f8003fc2
commit
8b55e40030
4 changed files with 48 additions and 4 deletions
|
@ -162,6 +162,10 @@ authenticationMethod: (NSString *)authenticationMethod
|
|||
|
||||
- (unsigned) isEqual: (id)other
|
||||
{
|
||||
if ((id)self == other)
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
if ([other isKindOfClass: [NSURLProtectionSpace class]] == NO)
|
||||
{
|
||||
return NO;
|
||||
|
@ -202,8 +206,8 @@ authenticationMethod: (NSString *)authenticationMethod
|
|||
return NO;
|
||||
}
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
|
||||
- (BOOL) isProxy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue