summaryrefslogtreecommitdiff
path: root/dbus/dbus-binding-tool-glib.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-binding-tool-glib.c')
-rw-r--r--dbus/dbus-binding-tool-glib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/dbus-binding-tool-glib.c b/dbus/dbus-binding-tool-glib.c
index f0b6bf6..2a3ff03 100644
--- a/dbus/dbus-binding-tool-glib.c
+++ b/dbus/dbus-binding-tool-glib.c
@@ -870,11 +870,13 @@ dbus_binding_tool_output_glib_server (BaseInfo *info, GIOChannel *channel, const
ret = FALSE;
g_io_channel_shutdown (data.channel, TRUE, error);
g_io_channel_unref (data.channel);
+ data.channel = NULL;
goto io_lose;
}
g_io_channel_shutdown (data.channel, TRUE, error);
g_io_channel_unref (data.channel);
+ data.channel = NULL;
/* Now spawn glib-genmarshal to insert all our required marshallers */
argv = g_ptr_array_new ();