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.
This commit is contained in:
Patrick Ohly 2014-02-11 06:36:46 -08:00
parent fcfe079a09
commit 0b16e74004
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}