summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@gnome.org>2012-01-30 15:56:23 -0200
committerArx Cruz <arxcruz@gnome.org>2012-01-30 15:56:23 -0200
commitfd165dfe195375f66d5d97b97a2d3ab22c0bb633 (patch)
tree8ebd3ab26c7d987a703813907e4c40a86aee2ec9
parentUpdated Traditional Chinese translation(Hong Kong and Taiwan) (diff)
downloadzenity-fd165dfe195375f66d5d97b97a2d3ab22c0bb633.tar.gz
zenity-fd165dfe195375f66d5d97b97a2d3ab22c0bb633.tar.bz2
zenity-fd165dfe195375f66d5d97b97a2d3ab22c0bb633.zip
Bug #668935 - the channel was being freed twice.
-rw-r--r--src/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 10d8946b..ad4a6d14 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 ();
bgstack15