mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 20:18:02 +02:00
Release pattern source image when done with it
This commit is contained in:
parent
59e4a32d55
commit
ad247974eb
1 changed files with 1 additions and 0 deletions
|
|
@ -833,6 +833,7 @@ emit_surface_pattern (cairo_ps_surface_t *surface,
|
|||
&image_extra);
|
||||
assert (status == CAIRO_STATUS_SUCCESS);
|
||||
emit_image (surface, image, &pattern->base.matrix, "MyPattern");
|
||||
_cairo_surface_release_source_image (pattern->surface, image, image_extra);
|
||||
_cairo_output_stream_printf (surface->stream,
|
||||
"<< /PatternType 1 /PaintType 1 /TilingType 1\n");
|
||||
_cairo_surface_get_extents (&image->base, &extents);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue