mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-29 21:33:30 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user