Small memory leak in theme-config parser.

This commit is contained in:
Dave Davenport 2017-04-12 09:22:26 +02:00
parent f1c23c5bfa
commit d6af6d29fc
2 changed files with 2 additions and 0 deletions

View file

@ -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 );
}
;

View file

@ -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] );