From 42e77c1077f389357faab214d7ad8bc18709cb31 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 9 Oct 2007 16:59:45 +0100 Subject: [PATCH] [cairo-pdf-surface] Destroy closed streams. Destroy the streams when closing groups in order to free the associated resources. --- src/cairo-pdf-surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index f16210411..7dda21a67 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -989,7 +989,7 @@ _cairo_pdf_surface_close_group (cairo_pdf_surface_t *surface, if (group->id == 0) return _cairo_error (CAIRO_STATUS_NO_MEMORY); - return _cairo_output_stream_close (surface->group_stream.mem_stream); + return _cairo_output_stream_destroy (surface->group_stream.mem_stream); } static cairo_status_t @@ -1134,7 +1134,7 @@ _cairo_pdf_surface_stop_content_stream (cairo_pdf_surface_t *surface) } surface->content_stream.active = FALSE; - return _cairo_output_stream_close (surface->content_stream.mem_stream); + return _cairo_output_stream_destroy (surface->content_stream.mem_stream); } static cairo_status_t