Fixes for dealloc when init has not been called.

This commit is contained in:
rfm 2024-11-17 16:41:59 +00:00
parent 65b9b55e01
commit 6a723e5a87
5 changed files with 15 additions and 12 deletions

View file

@ -155,7 +155,7 @@ static NSDateFormatterBehavior _defaultBehavior = 0;
- (void) dealloc
{
RELEASE(_dateFormat);
if (internal != 0)
if (GS_EXISTS_INTERNAL)
{
RELEASE(internal->_locale);
RELEASE(internal->_tz);