~ted/cairo/trunk

Viewing all changes in revision 10476.

  • Committer: Uli Schlachter
  • Date: 2018-03-15 20:43:03 UTC
  • Revision ID: git-v1:1ed124ace201946177eab962d3b07bb2fedf9026
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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: