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-Tag: 2.21.1~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ecfae6a71b10cda9b3fa1e8f38bb22db01fb0af;p=platform%2Fupstream%2Fglib.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 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); }