1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-07-31 21:59:25 -04:00

Clear theme memory on close, free temporary widget

This commit is contained in:
Dave Davenport 2017-01-09 23:08:11 +01:00
parent cf1940f8cb
commit a5d2db256e
2 changed files with 6 additions and 0 deletions

View file

@ -383,6 +383,11 @@ static void cleanup ()
} }
g_list_free ( list_of_error_msgs ); g_list_free ( list_of_error_msgs );
} }
if ( rofi_theme ) {
rofi_theme_free ( rofi_theme );
rofi_theme = NULL;
}
TIMINGS_STOP (); TIMINGS_STOP ();
} }

View file

@ -383,6 +383,7 @@ listview *listview_create ( const char *name, listview_update_callback cb, void
textbox *tb = textbox_create ( tb_name, 0, NORMAL, "" ); textbox *tb = textbox_create ( tb_name, 0, NORMAL, "" );
lv->element_height = textbox_get_estimated_height ( tb, lv->eh ); lv->element_height = textbox_get_estimated_height ( tb, lv->eh );
g_free ( tb_name ); g_free ( tb_name );
widget_free ( WIDGET ( tb ) );
lv->callback = cb; lv->callback = cb;
lv->udata = udata; lv->udata = udata;