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:
richard 1998-09-02 12:34:38 +00:00
parent bfd5967011
commit 13ba5809c0
8 changed files with 22 additions and 17 deletions

View file

@ -156,8 +156,8 @@ static id long_day[7] = {@"Sunday",
- (id) initWithCoder: (NSCoder*)aCoder
{
self = [super initWithCoder: aCoder];
calendar_format = [aCoder decodeObject];
time_zone = [aCoder decodeObject];
[aCoder decodeValueOfObjCType: @encode(id) at: &calendar_format];
[aCoder decodeValueOfObjCType: @encode(id) at: &time_zone];
return self;
}