mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix leak when absolute time zones are stored in the name dictionary
This commit is contained in:
parent
eeff6e08a7
commit
9207ab856f
1 changed files with 2 additions and 1 deletions
|
@ -748,6 +748,7 @@ static int uninitialisedOffset = 100000;
|
|||
z = self;
|
||||
NSMapInsert(absolutes, (void*)(uintptr_t)anOffset, (void*)z);
|
||||
[zoneDictionary setObject: self forKey: (NSString*)name];
|
||||
RELEASE(self);
|
||||
}
|
||||
if (anOffset % 900 == 0)
|
||||
{
|
||||
|
@ -755,7 +756,7 @@ static int uninitialisedOffset = 100000;
|
|||
|
||||
if (nil == commonAbsolutes[index])
|
||||
{
|
||||
commonAbsolutes[index] = RETAIN(self);
|
||||
commonAbsolutes[index] = RETAIN(z);
|
||||
}
|
||||
}
|
||||
GS_MUTEX_UNLOCK(zone_mutex);
|
||||
|
|
Loading…
Reference in a new issue