Use RAII to unmap or close the lexer states' files automatically

This commit is contained in:
Rangi42
2024-03-22 14:03:04 -04:00
committed by Sylvie
parent 507439bc25
commit 6a5518e0c5
3 changed files with 15 additions and 6 deletions

View File

@@ -220,7 +220,6 @@ bool yywrap() {
return true;
}
lexer_CleanupState(contextStack.top().lexerState);
contextStack.pop();
lexer_SetState(&contextStack.top().lexerState);