summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-09 23:08:11 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-09 23:08:11 +0100
commita5d2db256ea183e585b2b3898d2caf9da30ad9ae (patch)
treedf55618d97c63bfcd3c7a36ed9698e78fbe2feff
parentcf1940f8cba5549e6a2de39029fea48fc6c3ebcc (diff)
Clear theme memory on close, free temporary widget
-rw-r--r--source/rofi.c5
-rw-r--r--source/widgets/listview.c1
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;