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.
This commit is contained in:
Alexander Larsson 2009-05-12 19:53:24 +02:00
parent 2bbb85633f
commit 1ecfae6a71

View File

@ -95,9 +95,6 @@ g_input_stream_finalize (GObject *object)
stream = G_INPUT_STREAM (object); 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); G_OBJECT_CLASS (g_input_stream_parent_class)->finalize (object);
} }