mirror of
https://github.com/davatorium/rofi.git
synced 2025-11-06 22:54:53 -05:00
Destroy the lexer after parsing
This commit is contained in:
parent
d8b877147c
commit
5b1b8d4d05
1 changed files with 3 additions and 1 deletions
|
|
@ -113,7 +113,8 @@ void rofi_theme_print ( Widget *widget )
|
|||
rofi_theme_print_index ( 0, widget);
|
||||
}
|
||||
|
||||
extern int yyparse();
|
||||
int yyparse();
|
||||
void yylex_destroy( void );
|
||||
extern FILE* yyin;
|
||||
extern Widget *rofi_theme;
|
||||
|
||||
|
|
@ -155,6 +156,7 @@ void rofi_theme_parse_file ( const char *file )
|
|||
return;
|
||||
}
|
||||
while ( yyparse() );
|
||||
yylex_destroy();
|
||||
}
|
||||
static Widget *rofi_theme_find_single ( Widget *widget, const char *name)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue