From fd165dfe195375f66d5d97b97a2d3ab22c0bb633 Mon Sep 17 00:00:00 2001 From: Arx Cruz Date: Mon, 30 Jan 2012 15:56:23 -0200 Subject: Bug #668935 - the channel was being freed twice. --- src/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree.c b/src/tree.c index 10d8946..ad4a6d1 100644 --- a/src/tree.c +++ b/src/tree.c @@ -645,7 +645,7 @@ zenity_tree_dialog_response (GtkWidget *widget, int response, gpointer data) zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; } - if (channel != NULL) + if (channel->is_readable == TRUE) g_io_channel_shutdown (channel, TRUE, NULL); gtk_main_quit (); -- cgit v1.2.3-2-g168b