mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 12:38:02 +02:00
Fix cairo_output_stream_destroy to do nothing on nil stream objects.
This commit is contained in:
parent
0544515279
commit
8a209e6ad9
1 changed files with 6 additions and 0 deletions
|
|
@ -99,6 +99,12 @@ _cairo_output_stream_close (cairo_output_stream_t *stream)
|
|||
if (stream->closed)
|
||||
return;
|
||||
|
||||
if (stream == &cairo_output_stream_nil ||
|
||||
stream == &cairo_output_stream_nil_write_error)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (stream->close_func) {
|
||||
status = stream->close_func (stream->closure);
|
||||
if (status)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue