mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Clear theme memory on close, free temporary widget
This commit is contained in:
parent
cf1940f8cb
commit
a5d2db256e
2 changed files with 6 additions and 0 deletions
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue