X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fgedcom_lohi.lex;h=a2f82a96cd361f8ba4d89330fe13180f2eb57b5c;hb=2468a5aefafdfbd1982fe3214e3866e072892506;hp=d6092a6d67d158c3bb2e9a8c7baf27b53dc72826;hpb=0a9103e26559e1501b6cf7dd7f8eb00ba50de1cb;p=gedcom-parse.git diff --git a/gedcom/gedcom_lohi.lex b/gedcom/gedcom_lohi.lex index d6092a6..a2f82a9 100644 --- a/gedcom/gedcom_lohi.lex +++ b/gedcom/gedcom_lohi.lex @@ -219,8 +219,12 @@ ACTION_BEFORE_REGEXPS %% +static int exitfuncregistered = 0; + int yywrap() { + if (! exitfuncregistered && atexit(yylex_cleanup) == 0) + atexit(yylex_cleanup); return 1; }