From 0b16e74004074f103a3da8fb5de8b885cf87cc47 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 11 Feb 2014 06:36:46 -0800 Subject: [PATCH] GSignondPipeStream: avoid depending on newer glib g_clear_object() unnecessarily creates a dependency on a more recent glib version. It probably isn't used correctly here anyway (g_clear_object() checks for NULL itself, so the code around it doesn't need and should do that), so we can use the older g_object_unref() instead. --- src/syncevo/gsignond-pipe-stream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/syncevo/gsignond-pipe-stream.cpp b/src/syncevo/gsignond-pipe-stream.cpp index c13d9b14..d3a3cd04 100644 --- a/src/syncevo/gsignond-pipe-stream.cpp +++ b/src/syncevo/gsignond-pipe-stream.cpp @@ -70,12 +70,12 @@ _gsignond_pipe_stream_finalize (GObject *gobject) /* g_io_stream needs streams to be valid in its dispose still */ if (stream->priv->input_stream) { - g_clear_object (&stream->priv->input_stream); + g_object_unref (stream->priv->input_stream); stream->priv->input_stream = NULL; } if (stream->priv->output_stream) { - g_clear_object (&stream->priv->output_stream); + g_object_unref (stream->priv->output_stream); stream->priv->output_stream = NULL; }