atexit improvements

This commit is contained in:
rfm 2024-11-14 12:52:43 +00:00
parent e64b7dc6b3
commit dd3367de3b
4 changed files with 86 additions and 42 deletions

View file

@ -105,7 +105,15 @@ static SEL rlSel;
+ (void) atExit
{
DESTROY(defaultPlaceholderArray);
id o;
/* The default placeholder array overrides -dealloc so we must get rid of
* it directly.
*/
o = defaultPlaceholderArray;
defaultPlaceholderArray = nil;
NSDeallocateObject(o);
DESTROY(placeholderMap);
}