[cairo-commit] src/cairo-gl-msaa-compositor.c

Martin Robinson mrobinson at kemper.freedesktop.org
Fri Jan 25 19:56:17 2013


 src/cairo-gl-msaa-compositor.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit bb4072046016610a510373df3b67cdeb2ac1b583
Author: Henry Song <henry.song at samsung.com>
Date:   Fri Jan 25 11:55:10 2013 -0800

    gl/msaa: Fix a memory leak in _clip_to_traps
    
    We need to clean up the polygon we create when decomposing a path into
    trapezoids.

diff --git a/src/cairo-gl-msaa-compositor.c b/src/cairo-gl-msaa-compositor.c
index 5773733..4854d8f 100644
--- a/src/cairo-gl-msaa-compositor.c
+++ b/src/cairo-gl-msaa-compositor.c
@@ -189,6 +189,8 @@ _clip_to_traps (cairo_clip_t *clip,
     status = _cairo_bentley_ottmann_tessellate_polygon (traps,
 							&polygon,
 							fill_rule);
+    _cairo_polygon_fini (&polygon);
+
     return status;
 }
 


More information about the cairo-commit mailing list