mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Only call flush if non-null.
2007-12-04 Alexander Larsson <alexl@redhat.com> * goutputstream.c: (g_output_stream_close): Only call flush if non-null. svn path=/trunk/; revision=6040
This commit is contained in:
committed by
Alexander Larsson
parent
117de38f04
commit
74e95b90d2
@@ -518,7 +518,10 @@ g_output_stream_close (GOutputStream *stream,
|
||||
if (cancellable)
|
||||
g_push_current_cancellable (cancellable);
|
||||
|
||||
res = class->flush (stream, cancellable, error);
|
||||
if (class->flush)
|
||||
res = class->flush (stream, cancellable, error);
|
||||
else
|
||||
res = TRUE;
|
||||
|
||||
if (!res)
|
||||
{
|
||||
|
Reference in New Issue
Block a user