mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Fix false positive in leak analysis due to clearing pointer at exit
This commit is contained in:
parent
9e86902ba1
commit
0d66ee0f82
1 changed files with 4 additions and 1 deletions
|
@ -1288,7 +1288,6 @@ static int uninitialisedOffset = 100000;
|
|||
GS_MUTEX_UNLOCK(zone_mutex);
|
||||
|
||||
DESTROY(zoneDictionary);
|
||||
DESTROY(localTimeZone);
|
||||
DESTROY(defaultTimeZone);
|
||||
DESTROY(systemTimeZone);
|
||||
DESTROY(abbreviationDictionary);
|
||||
|
@ -1346,6 +1345,10 @@ static int uninitialisedOffset = 100000;
|
|||
absolutes = NSCreateMapTable(NSIntegerMapKeyCallBacks,
|
||||
NSNonOwnedPointerMapValueCallBacks, 0);
|
||||
|
||||
/* NB. the instance of NSLocalTimeZone overrides memory management
|
||||
* so it is never deallocated. This must not be destroyed in the
|
||||
* +atExit: method becuse that would confuse leak analysis tools.
|
||||
*/
|
||||
localTimeZone = [[NSLocalTimeZone alloc] init];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver: self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue