summaryrefslogtreecommitdiff
path: root/src/cairo-surface-subsurface.c
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-08-27 20:26:06 +0300
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-08-27 20:26:06 +0300
commitdf4b23ff74f3d22fb306f59cdba4dce6b0857cd2 (patch)
tree6da2bf001dc97da18c95c62214ab96ce8a765daa /src/cairo-surface-subsurface.c
parent2d146867dc4d4e17da2fd1e4776f62aaa999d90f (diff)
downloadcairo-df4b23ff74f3d22fb306f59cdba4dce6b0857cd2.tar.gz
subsurface: Fix crash when acquiring a source image.
The code is passing in the extra info received from the target surface's acquire_source() method to _cairo_surface_get_extents() rather than the acquired source surface itself.
Diffstat (limited to 'src/cairo-surface-subsurface.c')
-rw-r--r--src/cairo-surface-subsurface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-surface-subsurface.c b/src/cairo-surface-subsurface.c
index c8b1a801c..96459a789 100644
--- a/src/cairo-surface-subsurface.c
+++ b/src/cairo-surface-subsurface.c
@@ -337,7 +337,7 @@ _cairo_surface_subsurface_acquire_source_image (void *abstrac
if (unlikely (status))
goto CLEANUP;
- ret = _cairo_surface_get_extents (extra->image_extra, &target_extents);
+ ret = _cairo_surface_get_extents (extra->image, &target_extents);
assert (ret);
/* only copy if we need to perform sub-byte manipulation */