Memory leak and other fixes from Frith-MacDonald.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2775 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 1998-03-12 14:21:20 +00:00
parent dc21fde8ae
commit 877756ca0e
17 changed files with 11155 additions and 10927 deletions

View file

@ -88,6 +88,11 @@
return self;
}
- (id)copy
{
return [self copyWithZone: NSDefaultMallocZone()];
}
- (id)copyWithZone:(NSZone *)zone
{
if (NSShouldRetainWithZone(self, zone))
@ -203,6 +208,20 @@
[self subclassResponsibility:_cmd];
}
- (BOOL)isEqual: (id)other
{
if ([other isKindOfClass: [self class]]) {
return [self isEqualToValue: other];
}
return NO;
}
- (BOOL)isEqualToValue: (NSValue*)other
{
[self subclassResponsibility:_cmd];
return NO;
}
- (const char *)objCType
{
[self subclassResponsibility:_cmd];