From 79e9546ef174a81ae4beeac9ba06c80f85c2b871 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sat, 26 Dec 2009 21:12:16 -0200 Subject: Remove GTK+ warnings --- hardinfo2/benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hardinfo2') diff --git a/hardinfo2/benchmark.c b/hardinfo2/benchmark.c index 53f8baf1..c6de97b5 100644 --- a/hardinfo2/benchmark.c +++ b/hardinfo2/benchmark.c @@ -395,13 +395,13 @@ static void do_benchmark(void (*benchmark_function)(void), int entry) case GTK_RESPONSE_ACCEPT: DEBUG("cancelling benchmark"); + gtk_widget_destroy(bench_dialog); g_source_remove(watch_id); kill(bench_pid, SIGINT); } bench_results[entry] = benchmark_dialog->result; - gtk_widget_destroy(bench_dialog); g_io_channel_unref(channel); shell_status_set_enabled(TRUE); g_free(benchmark_dialog); -- cgit v1.2.3