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

Benjamin Otte company at kemper.freedesktop.org
Thu Mar 28 18:40:49 PDT 2013


 src/cairo-quartz-surface.c |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit fdec6b37596d8b064ff082326d7189daa8208052
Author: Michael Hutchinson <m.j.hutchinson at gmail.com>
Date:   Fri Mar 29 02:37:33 2013 +0100

    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 at redhat.com>

diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index 1e2bbec..868c6c8 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);
     }
 


More information about the cairo-commit mailing list