summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Song <henry.song@samsung.com>2013-01-25 11:55:10 -0800
committerMartin Robinson <mrobinson@igalia.com>2013-01-25 11:55:10 -0800
commitbb4072046016610a510373df3b67cdeb2ac1b583 (patch)
tree40c8a84e932c9f10a3df24bce248895d93e6a1be
parent7054c9969cb0e41845635d6658935da223899f08 (diff)
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.
-rw-r--r--src/cairo-gl-msaa-compositor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-gl-msaa-compositor.c b/src/cairo-gl-msaa-compositor.c
index 57737337..4854d8f0 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;
}