mirror of
https://github.com/davatorium/rofi.git
synced 2025-01-27 15:25:24 -05: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;
|
Property *p = (Property *) value;
|
||||||
config_parse_set_property ( p );
|
config_parse_set_property ( p );
|
||||||
}
|
}
|
||||||
|
g_hash_table_destroy ( $3 );
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -89,6 +89,7 @@ void rofi_theme_free ( ThemeWidget *widget )
|
||||||
}
|
}
|
||||||
if ( widget->properties ) {
|
if ( widget->properties ) {
|
||||||
g_hash_table_destroy ( widget->properties );
|
g_hash_table_destroy ( widget->properties );
|
||||||
|
widget->properties = NULL;
|
||||||
}
|
}
|
||||||
for ( unsigned int i = 0; i < widget->num_widgets; i++ ) {
|
for ( unsigned int i = 0; i < widget->num_widgets; i++ ) {
|
||||||
rofi_theme_free ( widget->widgets[i] );
|
rofi_theme_free ( widget->widgets[i] );
|
||||||
|
|
Loading…
Add table
Reference in a new issue