mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
Fix so that NXConstantStrings are encodes as NSGCStrings, avoiding memory
leaks when restoring from archive. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3085 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6154574562
commit
7f01cf8753
1 changed files with 4 additions and 4 deletions
|
@ -708,11 +708,11 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NXConstantString overrides [-dealloc] so that it is never deallocated.
|
* NXConstantString overrides [-dealloc] so that it is never deallocated.
|
||||||
* If we pass an NXConstantString to another process it will never get
|
* If we pass an NXConstantString to another process or record it in an
|
||||||
* deallocated in the other process - causing a memory leak. So we tell
|
* archive and readi it back, the new copy will never be deallocated -
|
||||||
* the DO system to use the super class instead.
|
* causing a memory leak. So we tell the system to use the super class.
|
||||||
*/
|
*/
|
||||||
- (Class)classForPortCoder
|
- (Class)classForCoder
|
||||||
{
|
{
|
||||||
return [self superclass];
|
return [self superclass];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue