[cairo-bugs] [Bug 105466] New: Memory leak in cairo_show_text

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 12 21:25:18 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105466

            Bug ID: 105466
           Summary: Memory leak in cairo_show_text
           Product: cairo
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: freetype font backend
          Assignee: david at freetype.org
          Reporter: philip.chimento at gmail.com
        QA Contact: cairo-bugs at cairographics.org

Here's a valgrind trace that I don't think is caused by my code:

==28514==    at 0x4C2DB6B: malloc (vg_replace_malloc.c:299)
==28514==    by 0xBCC752D: ??? (in /usr/lib64/libfontconfig.so.1.10.1)
==28514==    by 0xBCC7CD6: ??? (in /usr/lib64/libfontconfig.so.1.10.1)
==28514==    by 0xBCC8777: FcPatternDuplicate (in
/usr/lib64/libfontconfig.so.1.10.1)
==28514==    by 0x9907AA2: _cairo_ft_font_face_create_for_pattern
(cairo-ft-font.c:2976)
==28514==    by 0x9907CAF: _cairo_ft_font_face_create_for_toy
(cairo-ft-font.c:2817)
==28514==    by 0x98BD9FF: _cairo_toy_font_face_create_impl_face
(cairo-toy-font-face.c:168)
==28514==    by 0x98BD9FF: _cairo_toy_font_face_init
(cairo-toy-font-face.c:197)
==28514==    by 0x98BD9FF: cairo_toy_font_face_create
(cairo-toy-font-face.c:321)
==28514==    by 0x986E14F: _cairo_gstate_ensure_font_face (cairo-gstate.c:1828)
==28514==    by 0x986E14F: _cairo_gstate_ensure_scaled_font
(cairo-gstate.c:1850)
==28514==    by 0x9870E40: _cairo_gstate_get_scaled_font (cairo-gstate.c:1733)
==28514==    by 0x986973F: _cairo_default_context_get_scaled_font
(cairo-default-context.c:1282)
==28514==    by 0x9863A02: cairo_show_text (cairo.c:3218)

Cairo 1.14.10. It looks like there's a FcPattern being leaked.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20180312/d9481aa4/attachment.html>


More information about the cairo-bugs mailing list