unref the GIOChannel when closing the stream peer.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@826
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
+2006-06-27 Bill Haneman <bill.haneman@sun.com>
+
+ * libspi/streamablecontent.c:
+ (impl_content_stream_close):
+ Unref the GIOChannel on close.
+
2006-06-23 Bill Haneman <bill.haneman@sun.com>
* idl/Accessibility_Role.idl:
GIOStatus status;
GError *err;
SpiContentStream *stream = SPI_CONTENT_STREAM (bonobo_object_from_servant(servant));
- if (stream && stream->gio) status = g_io_channel_shutdown (stream->gio, TRUE, &err);
+ if (stream && stream->gio) {
+ status = g_io_channel_shutdown (stream->gio, TRUE, &err);
+ g_io_channel_unref (stream->gio);
+ }
if (err) g_free (err);
}