aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ad40b3626fdb..ec1ee26b485a 100644
--- a/tools/perf/ui/gtk/setup.c
+++ b/tools/perf/ui/gtk/setup.c
@@ -13,6 +13,8 @@ int perf_gtk__init(void)
13 13
14void perf_gtk__exit(bool wait_for_ok __used) 14void perf_gtk__exit(bool wait_for_ok __used)
15{ 15{
16 if (!perf_gtk__is_active_context(pgctx))
17 return;
16 perf_error__unregister(&perf_gtk_eops); 18 perf_error__unregister(&perf_gtk_eops);
17 gtk_main_quit(); 19 gtk_main_quit();
18} 20}