Bug #668935 - the channel was being freed twice.

This commit is contained in:
Arx Cruz 2012-01-30 15:56:23 -02:00
parent a10f57b5b1
commit fd165dfe19

View File

@ -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); zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
break; break;
} }
if (channel != NULL) if (channel->is_readable == TRUE)
g_io_channel_shutdown (channel, TRUE, NULL); g_io_channel_shutdown (channel, TRUE, NULL);
gtk_main_quit (); gtk_main_quit ();