mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 19:59:03 +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
Notes:
sideshowbarker
2024-07-17 03:05:16 +09:00
Author: https://github.com/awesomekling
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