summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hutchinson <m.j.hutchinson@gmail.com>2013-03-29 02:37:33 +0100
committerBenjamin Otte <otte@redhat.com>2013-03-29 02:40:13 +0100
commitfdec6b37596d8b064ff082326d7189daa8208052 (patch)
tree0cb8c88cb61c34e48a6772dfdebfd483f5e4285b
parent9e0748e223cfb8c5557c73f3ab5068ec1323e7c2 (diff)
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>
-rw-r--r--src/cairo-quartz-surface.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index 1e2bbecb..868c6c85 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -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);
}