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:
rfm 2006-06-19 15:37:50 +00:00
parent 83f8003fc2
commit 8b55e40030
4 changed files with 48 additions and 4 deletions

View file

@ -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