Fix a few leaks

This commit is contained in:
rfm 2024-11-20 14:29:41 +00:00
parent fff13fc7ac
commit 92ef562ebe

View file

@ -320,6 +320,7 @@ equalTypes(NSArray *t1, NSArray *t2)
- (void) dealloc
{
[self reset];
DESTROY(wordMap);
DESTROY(ifStack);
DESTROY(declared);
@ -1680,7 +1681,7 @@ recheck:
/* We want to be able to parse new comments while retaining the
originally parsed comment for the enum/union/struct. */
introComment = [comment copy];
introComment = AUTORELEASE([comment copy]);
DESTROY(comment);
pos++; /* Skip '{' */