Accessibility::StreamableContent - impl_content_stream_close,
authorbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 27 Jun 2006 15:00:57 +0000 (15:00 +0000)
committerbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 27 Jun 2006 15:00:57 +0000 (15:00 +0000)
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

ChangeLog
libspi/streamablecontent.c

index 1bec69a..b0690c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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: 
index f686db3..785bf3a 100644 (file)
@@ -149,7 +149,10 @@ impl_content_stream_close (PortableServer_Servant servant,
     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);
 }