Bug 91 - XftFontOpenInfo adopts the passed-in pattern, but only sometimes
Summary: XftFontOpenInfo adopts the passed-in pattern, but only sometimes
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xft (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Keith Packard
QA Contact:
Depends on:
Reported: 2003-05-21 13:17 UTC by Nalin Dahyabhai
Modified: 2011-10-15 17:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Nalin Dahyabhai 2003-05-21 13:17:30 UTC
If XftFontOpenInfo() finds an already-open font which matches the pattern it was
passed, it destroys the passed-in pattern.  If it opens a new font, the font
keeps a pointer to the passed-in pattern.  When the font is destroyed by
XftFontDestroy, however, the font's pattern is not destroyed.  This makes it
difficult for callers to know when it is safe to destroy a pattern which has
been used to open a font.
Comment 1 Keith Packard 2003-05-21 13:20:52 UTC
Current Xft CVS should now consistently destroy the pattern when the font is
closed.  That and the charset.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.