[cairo] Trivial bug in cairo-surface-fallback.c

Nick Wellnhofer wellnhofer at aevum.de
Sat Jan 20 12:11:27 PST 2007


In the function _cairo_surface_fallback_snapshot in 
cairo-surface-fallback.c, _cairo_surface_release_source_image is called 
with a wrong image_extra pointer.

A patch against the current Mozilla trunk version of Cairo (I think it's 
1.3.8) is attached.

Nick
-------------- next part --------------
--- mozilla-cvs/gfx/cairo/cairo/src/cairo-surface-fallback.c	2006-12-23 02:15:53.000000000 +0100
+++ mozilla/gfx/cairo/cairo/src/cairo-surface-fallback.c	2007-01-20 20:33:01.156487000 +0100
@@ -984,7 +984,7 @@ _cairo_surface_fallback_snapshot (cairo_
     _cairo_pattern_fini (&pattern.base);
 
     _cairo_surface_release_source_image (surface,
-					 image, &image_extra);
+					 image, image_extra);
 
     snapshot->device_transform = surface->device_transform;
     snapshot->device_transform_inverse = surface->device_transform_inverse;


More information about the cairo mailing list