Avoid leaking NXConstantStrings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4452 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-06-21 19:54:43 +00:00
parent be42e23da4
commit 87f29e1892
2 changed files with 15 additions and 8 deletions

View file

@ -1097,22 +1097,22 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self,
* archive and readi it back, the new copy will never be deallocated -
* causing a memory leak. So we tell the system to use the super class.
*/
- (Class)classForArchiver
- (Class) classForArchiver
{
return [self superclass];
}
- (Class)classForCoder
- (Class) classForCoder
{
return [self superclass];
}
- (Class)classForPortCoder
- (Class) classForPortCoder
{
return [self superclass];
}
- (void)dealloc
- (void) dealloc
{
}
@ -1136,6 +1136,11 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self,
return self;
}
- copy
{
return self;
}
- copyWithZone: (NSZone*)z
{
return self;