From: Alexander Larsson Date: Tue, 12 May 2009 17:53:24 +0000 (+0200) Subject: Remove close in finalize, we do it in dispose X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=1ecfae6a71b10cda9b3fa1e8f38bb22db01fb0af;p=dana%2Fcg-glib.git 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. --- diff --git a/gio/ginputstream.c b/gio/ginputstream.c index f8f685df..3d95c8ba 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); }