diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-04-12 09:22:26 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-04-12 09:22:26 +0200 |
commit | d6af6d29fcac2b962f85abbf9e2d069d2a258896 (patch) | |
tree | d4f41f7591a5dcb0bfa66cbad982b9a6247636d8 | |
parent | f1c23c5bfa6883ae8c86c19fbad040bb18d3f8a8 (diff) |
Small memory leak in theme-config parser.
-rw-r--r-- | lexer/theme-parser.y | 1 | ||||
-rw-r--r-- | source/theme.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lexer/theme-parser.y b/lexer/theme-parser.y index 293675ad..afcb5dda 100644 --- a/lexer/theme-parser.y +++ b/lexer/theme-parser.y @@ -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 ); } ; diff --git a/source/theme.c b/source/theme.c index a04e7079..2dacdc40 100644 --- a/source/theme.c +++ b/source/theme.c @@ -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] ); |