[glib] Remove close in finalize, we do it in dispose



commit 1ecfae6a71b10cda9b3fa1e8f38bb22db01fb0af
Author: Alexander Larsson <alexl redhat com>
Date:   Tue May 12 19:53:24 2009 +0200

    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 files changed, 0 insertions(+), 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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]