summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/code.l b/src/code.l
index c0db62b..fb609e5 100644
--- a/src/code.l
+++ b/src/code.l
@@ -3877,6 +3877,10 @@ CCodeParser::CCodeParser() : p(std::make_unique<CCodeParser::Private>())
CCodeParser::~CCodeParser()
{
+ struct yyguts_t *yyg = (struct yyguts_t*)p->yyscanner;
+ yyextra->classScopeLengthStack.clear();
+ delete yyextra->codeClassSDict;
+ yyextra->codeClassSDict=0;
codeYYlex_destroy(p->yyscanner);
}