mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 05:44:58 +00:00
LibGfx: Don't clone fonts in FontCascadeList::extend()
This was create a completely avoidable explosion of BitmapFont clones when running on SerenityOS.
This commit is contained in:
parent
bd9989b08a
commit
a30d263522
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ void FontCascadeList::add(NonnullRefPtr<Font> font, Vector<UnicodeRange> unicode
|
|||
void FontCascadeList::extend(FontCascadeList const& other)
|
||||
{
|
||||
for (auto const& font : other.m_fonts) {
|
||||
m_fonts.append({ font.font->clone(), font.unicode_ranges });
|
||||
m_fonts.append({ font.font, font.unicode_ranges });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue