quartz: Don't release memory we don't own

This was causing crashes due to double frees.

https://bugs.freedesktop.org/show_bug.cgi?id=62885

Signed-off-by: Benjamin Otte <otte@redhat.com>
This commit is contained in:
Michael Hutchinson 2013-03-29 02:37:33 +01:00 committed by Benjamin Otte
parent 9e0748e223
commit fdec6b3759

View file

@ -1374,7 +1374,6 @@ _cairo_quartz_teardown_state (cairo_quartz_drawing_state_t *state,
CGContextDrawLayerInRect (surface->cgContext,
state->clipRect,
state->layer);
CGContextRelease (state->cgDrawContext);
CGLayerRelease (state->layer);
}