[Webkit-unassigned] [Bug 16941] [GTK] FontCustomPlatformData.cpp leaks FT_Faces
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 23 18:00:11 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=16941
------- Comment #1 from alp at atoker.com 2008-01-23 18:00 PDT -------
>From SimpleFontDataGtk.cpp:
void SimpleFontData::platformDestroy()
{
if (!isCustomFont()) {
if (m_font.m_pattern && ((FcPattern*)-1 != m_font.m_pattern)) {
FcPatternDestroy(m_font.m_pattern);
m_font.m_pattern = 0;
}
if (m_font.m_scaledFont) {
cairo_scaled_font_destroy(m_font.m_scaledFont);
m_font.m_scaledFont = 0;
}
}
delete m_smallCapsFontData;
}
This isCustomFont() check looks overzealous as it won't free
m_font.m_scaledFont which exists even in custom WebFonts. So, another potential
leak here.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list