From 1ecfae6a71b10cda9b3fa1e8f38bb22db01fb0af Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 12 May 2009 19:53:24 +0200 Subject: [PATCH] Remove close in finalize, we do it in dispose This is not needed, and in fact it may be a bad idea to call it from finalize anyway since the object isn't fully alive then. --- gio/ginputstream.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gio/ginputstream.c b/gio/ginputstream.c index f8f685d..3d95c8b 100644 --- a/gio/ginputstream.c +++ b/gio/ginputstream.c @@ -94,9 +94,6 @@ g_input_stream_finalize (GObject *object) GInputStream *stream; stream = G_INPUT_STREAM (object); - - if (!stream->priv->closed) - g_input_stream_close (stream, NULL, NULL); G_OBJECT_CLASS (g_input_stream_parent_class)->finalize (object); } -- 2.7.4