1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 20:47:43 +00:00

LibWeb: Remove bizarre HashMap leak in StyleProperties copy ctor

This commit is contained in:
Andreas Kling 2020-04-08 17:18:47 +02:00
parent 7d28d9b2af
commit 0de368e36c

View file

@ -36,7 +36,7 @@ StyleProperties::StyleProperties()
} }
StyleProperties::StyleProperties(const StyleProperties& other) StyleProperties::StyleProperties(const StyleProperties& other)
: m_property_values(*new HashMap(other.m_property_values)) : m_property_values(other.m_property_values)
{ {
if (other.m_font) { if (other.m_font) {
m_font = other.m_font->clone(); m_font = other.m_font->clone();