[cairo-bugs] [Bug 105739] New: function cairo_text_extents causes resource leaks
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Mar 26 03:23:24 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=105739
Bug ID: 105739
Summary: function cairo_text_extents causes resource leaks
Product: cairo
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: chris at chris-wilson.co.uk
Reporter: vgdoqd at gmail.com
QA Contact: cairo-bugs at cairographics.org
`cairo_text_extents` refs the current font face of cairo_t, and leads to
resource leaks. The callstack is as follows
```
#0 cairo_font_face_reference (font_face=0x419908) at cairo-font-face.c:134
#1 cairo_scaled_font_create (font_face=0x439410, font_matrix=0x419340,
ctm=0xbfffedb0, options=0xbfffede0) at cairo-scaled-font.c:1179
#2 _cairo_gstate_ensure_scaled_font (gstate=0x4192f0) at cairo-gstate.c:1915
#3 _cairo_gstate_get_scaled_font (gstate=0x4192f0, scaled_font=0xbfffee54) at
cairo-gstate.c:1787
#4 _cairo_default_context_get_scaled_font (abstract_cr=0x4192d0) at
cairo-default-context.c:1300
#5 cairo_get_scaled_font (cr=0x4192d0) at cairo.c:3348
#6 cairo_text_extents (cr=0x4192d0, utf8=0x400d8e "Hello, Cairo!",
extents=0xbfffeee8) at cairo.c:3398
```
--
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/20180326/259c0220/attachment.html>
More information about the cairo-bugs
mailing list