diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-01-04 23:25:09 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-01-04 23:25:09 -0500 |
commit | 17871c52eff5ae89af08b9deb4be36b6b6f4c0e3 (patch) | |
tree | cf407661496c7497fa950f4025e962a86a24d33f /src/cairo-surface.c | |
parent | 616fb7a9f2612f6cc3472542a70ba3e8ccf16584 (diff) | |
download | cairo-17871c52eff5ae89af08b9deb4be36b6b6f4c0e3.tar.gz |
Don't leak patterns when compositing color glyphs
We were forgetting to free the pattern here.
Diffstat (limited to 'src/cairo-surface.c')
-rw-r--r-- | src/cairo-surface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-surface.c b/src/cairo-surface.c index 18f63df30..5580b153c 100644 --- a/src/cairo-surface.c +++ b/src/cairo-surface.c @@ -2654,6 +2654,7 @@ composite_one_color_glyph (cairo_surface_t *surface, status = surface->backend->mask (surface, op, pattern, pattern, clip); else status = surface->backend->paint (surface, op, pattern, clip); + cairo_pattern_destroy (pattern); } return status; |