diff options
author | Uli Schlachter <psychon@znc.in> | 2018-01-13 11:34:19 +0100 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2018-03-15 21:43:03 +0100 |
commit | 1ed124ace201946177eab962d3b07bb2fedf9026 (patch) | |
tree | e3be7660cb24f7088f64071122d8864de9ef0120 /src/cairoint.h | |
parent | 5454b85d4bf2f7bea454c940d90255a15517fa3b (diff) | |
download | cairo-1ed124ace201946177eab962d3b07bb2fedf9026.tar.gz |
Fix a 'memory leak' in the image compositor
There is a global pixman_glyph_cache_t instance that is initialized on
first use and shows up in valgrind output as a relatively large leak (I
think it was about 200 KiB). The reason for this is that this cache is
not freed by cairo_debug_reset_static_data().
This commit wires up freeing the cache to
cairo_debug_reset_static_data().
This cache was introduced in commit 615205cf0729 from 2012.
Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src/cairoint.h')
-rw-r--r-- | src/cairoint.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairoint.h b/src/cairoint.h index 051e4f805..11f2c1eaf 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -1586,6 +1586,9 @@ _cairo_image_scaled_glyph_fini (cairo_scaled_font_t *scaled_font, cairo_private void _cairo_image_reset_static_data (void); +cairo_private void +_cairo_image_compositor_reset_static_data (void); + cairo_private cairo_surface_t * _cairo_image_surface_create_with_pixman_format (unsigned char *data, pixman_format_code_t pixman_format, |