* src/css-url.c (get_urls_css): Call yylex_destroy() to reset CSS scanner

This commit is contained in:
Tim Rühsen 2018-04-19 19:59:40 +02:00
parent c1a368af89
commit d25d036fba

View File

@ -61,6 +61,7 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
extern YY_BUFFER_STATE yy_scan_bytes (const char *bytes,int len );
extern void yy_delete_buffer (YY_BUFFER_STATE b);
extern int yylex (void);
extern void yylex_destroy(void);
/*
Given a detected URI token, get only the URI specified within.
@ -192,6 +193,7 @@ get_urls_css (struct map_context *ctx, int offset, int buf_length)
}
yy_delete_buffer(b);
yylex_destroy();
DEBUGP (("\n"));
}