[cairo-commit] src/win32

Chris Wilson ickle at kemper.freedesktop.org
Wed Feb 15 11:49:41 PST 2012


 src/win32/cairo-win32-display-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 83af31f0f31bee5570148f51d9371e848b716486
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Feb 15 19:48:07 2012 +0000

    win32: Cast the surface to an image-surface to find its parent (compile fix)
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/win32/cairo-win32-display-surface.c b/src/win32/cairo-win32-display-surface.c
index ac37cbf..43862aa 100644
--- a/src/win32/cairo-win32-display-surface.c
+++ b/src/win32/cairo-win32-display-surface.c
@@ -407,7 +407,7 @@ _cairo_win32_display_surface_finish (void *abstract_surface)
 
     if (surface->image) {
 	/* Unhook ourselves first to avoid the double-unref from the image */
-	surface->image->parent = NULL;
+	to_image_surface(surface->image)->parent = NULL;
 	cairo_surface_finish (surface->image);
 	cairo_surface_destroy (surface->image);
     }


More information about the cairo-commit mailing list