mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fixed coding/decoding autorelease problem.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2949 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bfd5967011
commit
13ba5809c0
8 changed files with 22 additions and 17 deletions
|
@ -176,9 +176,9 @@ NSDictionary *_attributesAtIndexEffectiveRange(
|
|||
- initWithCoder: aCoder
|
||||
{
|
||||
self = [super initWithCoder:aCoder];
|
||||
textChars = [[aCoder decodeObject] retain];
|
||||
attributeArray = [[aCoder decodeObject] retain];
|
||||
locateArray = [[aCoder decodeObject] retain];
|
||||
[aCoder decodeValueOfObjCType: @encode(id) at: &textChars];
|
||||
[aCoder decodeValueOfObjCType: @encode(id) at: &attributeArray];
|
||||
[aCoder decodeValueOfObjCType: @encode(id) at: &locateArray];
|
||||
return self;
|
||||
}
|
||||
|
||||
|
@ -241,9 +241,9 @@ NSDictionary *_attributesAtIndexEffectiveRange(
|
|||
- initWithCoder: aCoder
|
||||
{
|
||||
self = [super initWithCoder:aCoder];
|
||||
textChars = [[aCoder decodeObject] retain];
|
||||
attributeArray = [[aCoder decodeObject] retain];
|
||||
locateArray = [[aCoder decodeObject] retain];
|
||||
[aCoder decodeValueOfObjCType: @encode(id) at: &textChars];
|
||||
[aCoder decodeValueOfObjCType: @encode(id) at: &attributeArray];
|
||||
[aCoder decodeValueOfObjCType: @encode(id) at: &locateArray];
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue