mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-23 18:37:50 +02:00
chain up unconditionally in finalize() and dispose(). Also don't
2008-06-16 Michael Natterer <mitch@imendio.com> * *.c: chain up unconditionally in finalize() and dispose(). Also don't dereference these function pointers when calling them since that has no meaning at all. svn path=/trunk/; revision=7048
This commit is contained in:
committed by
Michael Natterer
parent
b207146976
commit
a4427bfff5
@@ -92,9 +92,8 @@ g_output_stream_finalize (GObject *object)
|
||||
GOutputStream *stream;
|
||||
|
||||
stream = G_OUTPUT_STREAM (object);
|
||||
|
||||
if (G_OBJECT_CLASS (g_output_stream_parent_class)->finalize)
|
||||
(*G_OBJECT_CLASS (g_output_stream_parent_class)->finalize) (object);
|
||||
|
||||
G_OBJECT_CLASS (g_output_stream_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -106,9 +105,8 @@ g_output_stream_dispose (GObject *object)
|
||||
|
||||
if (!stream->priv->closed)
|
||||
g_output_stream_close (stream, NULL, NULL);
|
||||
|
||||
if (G_OBJECT_CLASS (g_output_stream_parent_class)->dispose)
|
||||
(*G_OBJECT_CLASS (g_output_stream_parent_class)->dispose) (object);
|
||||
|
||||
G_OBJECT_CLASS (g_output_stream_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user