فهرست منبع

LibWeb: Remove bizarre HashMap leak in StyleProperties copy ctor

Andreas Kling 5 سال پیش
والد
کامیت
0de368e36c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Libraries/LibWeb/CSS/StyleProperties.cpp

+ 1 - 1
Libraries/LibWeb/CSS/StyleProperties.cpp

@@ -36,7 +36,7 @@ StyleProperties::StyleProperties()
 }
 
 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) {
         m_font = other.m_font->clone();