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:
fedor 1998-03-12 14:21:20 +00:00
parent 7285b3e9a6
commit a0993c655f
17 changed files with 11155 additions and 10927 deletions

View file

@ -304,6 +304,21 @@
return [super isEqual: o];
}
- (id) copy
{
return [self copyWithZone: NSDefaultMallocZone()];
}
- copyWithZone: (NSZone*)zone
{
if (NSShouldRetainWithZone(self, zone)) {
return [self retain];
}
else {
return NSCopyObject(self, 0, zone);
}
}
- (NSString *)descriptionWithLocale: (NSDictionary*)locale
{
return [NSString stringWithFormat:TYPE_FORMAT, data];