diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-01-09 23:08:11 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-01-09 23:08:11 +0100 |
commit | a5d2db256ea183e585b2b3898d2caf9da30ad9ae (patch) | |
tree | df55618d97c63bfcd3c7a36ed9698e78fbe2feff /source | |
parent | cf1940f8cba5549e6a2de39029fea48fc6c3ebcc (diff) |
Clear theme memory on close, free temporary widget
Diffstat (limited to 'source')
-rw-r--r-- | source/rofi.c | 5 | ||||
-rw-r--r-- | source/widgets/listview.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/rofi.c b/source/rofi.c index 9f6f14db..ea155f2b 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -383,6 +383,11 @@ static void cleanup () } g_list_free ( list_of_error_msgs ); } + + if ( rofi_theme ) { + rofi_theme_free ( rofi_theme ); + rofi_theme = NULL; + } TIMINGS_STOP (); } diff --git a/source/widgets/listview.c b/source/widgets/listview.c index 7f657495..6e1e9bce 100644 --- a/source/widgets/listview.c +++ b/source/widgets/listview.c @@ -383,6 +383,7 @@ listview *listview_create ( const char *name, listview_update_callback cb, void textbox *tb = textbox_create ( tb_name, 0, NORMAL, "" ); lv->element_height = textbox_get_estimated_height ( tb, lv->eh ); g_free ( tb_name ); + widget_free ( WIDGET ( tb ) ); lv->callback = cb; lv->udata = udata; |