projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bbb856
)
Remove close in finalize, we do it in dispose
author
Alexander Larsson
<alexl@redhat.com>
Tue, 12 May 2009 17:53:24 +0000
(19:53 +0200)
committer
Alexander 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
patch
|
blob
|
history
diff --git
a/gio/ginputstream.c
b/gio/ginputstream.c
index
f8f685d
..
3d95c8b
100644
(file)
--- 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);
}