perf ui gtk: Ensure not to call gtk_main_quit() twice
authorNamhyung Kim <namhyung@kernel.org>
Fri, 17 Aug 2012 16:56:23 +0000 (01:56 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 20 Aug 2012 12:29:12 +0000 (09:29 -0300)
commit2708bf3a30b7bfa02d60a3f03603b6b92d093f1a
tree1c61a4d640d3a877c291e02dda5156f6db2482e4
parentdb146f06ac0bbea63271b6c78f4341ee46843e10
perf ui gtk: Ensure not to call gtk_main_quit() twice

Currently the gtk_main_quit() is called twice when perf exits so the
following warning is emitted:

  [penberg@tux perf]$ ./perf report --gtk
  ^Cperf: Interrupt

  (perf:4048): Gtk-CRITICAL **: IA__gtk_main_quit: assertion `main_loops != NULL' failed

Fix it by not to call it unnecessarily.

Reported-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1345222583-3964-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/gtk/setup.c