Remove close in finalize, we do it in dispose
authorAlexander Larsson <alexl@redhat.com>
Tue, 12 May 2009 17:53:24 +0000 (19:53 +0200)
committerAlexander Larsson <alexl@redhat.com>
Wed, 13 May 2009 11:18:28 +0000 (13:18 +0200)
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

index f8f685d..3d95c8b 100644 (file)
@@ -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);
 }