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

This commit is contained in:
Rangi42 authored and Sylvie committed 2024-03-22 14:25:36 -04:00
1 parent 507439bc25
commit 6a5518e0c5
3 files changed
+15 -6

No files matched your search

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