summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-14 17:42:06 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-14 17:42:06 +0200
commit4b33d91796f40fec88218fe0693c9660bbda3d32 (patch)
treeded292cfcd99324c35e1af7c6874095ac9f631f5 /plugins
parentf92aea56d89c1bfcb953a0fd57d07c08f65a53b1 (diff)
minor gtkui memleak fix
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/gtkui.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c
index ba84d0a7..62c0b8fd 100644
--- a/plugins/gtkui/gtkui.c
+++ b/plugins/gtkui/gtkui.c
@@ -1112,8 +1112,18 @@ gtkui_thread (void *ctx) {
progress_destroy ();
gtkui_hide_status_icon ();
draw_free ();
- gtk_widget_destroy (mainwin);
- gtk_widget_destroy (searchwin);
+ if (theme_treeview) {
+ gtk_widget_destroy (theme_treeview);
+ theme_treeview = NULL;
+ }
+ if (mainwin) {
+ gtk_widget_destroy (mainwin);
+ mainwin = NULL;
+ }
+ if (searchwin) {
+ gtk_widget_destroy (searchwin);
+ searchwin = NULL;
+ }
gdk_threads_leave ();
}