Skip to content

Commit

Permalink
win32: Cast the surface to an image-surface to find its parent (compi…
Browse files Browse the repository at this point in the history
…le fix)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Feb 15, 2012
1 parent df608e0 commit 83af31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win32/cairo-win32-display-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 83af31f

Please sign in to comment.