From a3e66b4088a2f422e57b9ccbd1a5dad93e16b4d4 Mon Sep 17 00:00:00 2001 From: billh Date: Tue, 27 Jun 2006 15:00:57 +0000 Subject: [PATCH] Accessibility::StreamableContent - impl_content_stream_close, 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 | 6 ++++++ libspi/streamablecontent.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1bec69a..b0690c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-06-27 Bill Haneman + + * libspi/streamablecontent.c: + (impl_content_stream_close): + Unref the GIOChannel on close. + 2006-06-23 Bill Haneman * idl/Accessibility_Role.idl: diff --git a/libspi/streamablecontent.c b/libspi/streamablecontent.c index f686db3..785bf3a 100644 --- a/libspi/streamablecontent.c +++ b/libspi/streamablecontent.c @@ -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); } -- 2.7.4