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 Frith-MacDonald 1998-09-02 12:34:38 +00:00
parent ffa804ba28
commit 8b48a4f469
8 changed files with 22 additions and 17 deletions

View file

@ -139,7 +139,7 @@ static NSMutableDictionary *_hostCache = nil;
+ (void)initialize
{
_hostCacheLock = [[NSConditionLock alloc] init];
_hostCache = [[NSMutableDictionary dictionary] retain];
_hostCache = [NSMutableDictionary new];
}
+ (NSHost *)currentHost
@ -246,7 +246,6 @@ static NSMutableDictionary *_hostCache = nil;
[super initWithCoder: aCoder];
address = [aCoder decodeObject];
addresses = [NSArray arrayWithObject: address];
[address release];
return self;
}
#endif