mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
4a690610ec
commit
1158a581b1
2 changed files with 15 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue