mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +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
ffa804ba28
commit
8b48a4f469
8 changed files with 22 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue