mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-25 13:00:30 +01:00
Fix cairo_surface_fallback_snapshot's use of release_source_image
&image_extra was being passed instead of image_extra to release; the bug only manifested itself when the particular backend did something with image_extra.
This commit is contained in:
parent
81e029edda
commit
552cf1dbd3
1 changed files with 2 additions and 2 deletions
|
|
@ -1051,7 +1051,7 @@ _cairo_surface_fallback_snapshot (cairo_surface_t *surface)
|
|||
image->height);
|
||||
if (cairo_surface_status (snapshot)) {
|
||||
_cairo_surface_release_source_image (surface,
|
||||
image, &image_extra);
|
||||
image, image_extra);
|
||||
return snapshot;
|
||||
}
|
||||
|
||||
|
|
@ -1069,7 +1069,7 @@ _cairo_surface_fallback_snapshot (cairo_surface_t *surface)
|
|||
|
||||
_cairo_pattern_fini (&pattern.base);
|
||||
_cairo_surface_release_source_image (surface,
|
||||
image, &image_extra);
|
||||
image, image_extra);
|
||||
|
||||
if (status) {
|
||||
cairo_surface_destroy (snapshot);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue