mirror of
https://github.com/lbonn/rofi
synced 2024-11-26 13:50:27 +00:00
Small memory leak in theme-config parser.
This commit is contained in:
parent
f1c23c5bfa
commit
d6af6d29fc
2 changed files with 2 additions and 0 deletions
|
@ -141,6 +141,7 @@ NAME_PREFIX name_path BOPEN optional_properties BCLOSE
|
|||
Property *p = (Property *) value;
|
||||
config_parse_set_property ( p );
|
||||
}
|
||||
g_hash_table_destroy ( $3 );
|
||||
}
|
||||
;
|
||||
|
||||
|
|
|
@ -89,6 +89,7 @@ void rofi_theme_free ( ThemeWidget *widget )
|
|||
}
|
||||
if ( widget->properties ) {
|
||||
g_hash_table_destroy ( widget->properties );
|
||||
widget->properties = NULL;
|
||||
}
|
||||
for ( unsigned int i = 0; i < widget->num_widgets; i++ ) {
|
||||
rofi_theme_free ( widget->widgets[i] );
|
||||
|
|
Loading…
Reference in a new issue