summaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/gtk/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/ui/gtk/setup.c')
-rw-r--r--tools/perf/ui/gtk/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/ui/gtk/setup.c b/tools/perf/ui/gtk/setup.c
index ad40b36..ec1ee26 100644
--- a/tools/perf/ui/gtk/setup.c
+++ b/tools/perf/ui/gtk/setup.c
@@ -13,6 +13,8 @@ int perf_gtk__init(void)
void perf_gtk__exit(bool wait_for_ok __used)
{
+ if (!perf_gtk__is_active_context(pgctx))
+ return;
perf_error__unregister(&perf_gtk_eops);
gtk_main_quit();
}
OpenPOWER on IntegriCloud