[cairo-commit] src/cairo-surface-fallback.c

Vladimir Vukicevic vladimir at kemper.freedesktop.org
Fri Jan 4 16:20:50 PST 2008


 src/cairo-surface-fallback.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 552cf1dbd32eb5933bc93bb3c1ef0fca9d4066aa
Author: Vladimir Vukicevic <vladimir at pobox.com>
Date:   Fri Jan 4 16:19:14 2008 -0800

    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.

diff --git a/src/cairo-surface-fallback.c b/src/cairo-surface-fallback.c
index 4abeaf9..ef28d9d 100644
--- a/src/cairo-surface-fallback.c
+++ b/src/cairo-surface-fallback.c
@@ -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);


More information about the cairo-commit mailing list