about summary refs log tree commit diff stats
path: root/src/tray.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tray.c')
-rw-r--r--src/tray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tray.c b/src/tray.c
index 8b078adf..12c46796 100644
--- a/src/tray.c
+++ b/src/tray.c
@@ -151,7 +151,7 @@ void destroy_tray(void)
     shutting_down = true;
     g_source_remove(timer);
     if (prof_tray) {
-        gtk_widget_destroy(GTK_WIDGET(prof_tray));
+        g_clear_object(&prof_tray);
         prof_tray = NULL;
     }
     g_string_free(icon_filename, true);