CSSParserVariable leaks seen on leaks bots
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Oct 2015 23:18:27 +0000 (23:18 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Oct 2015 23:18:27 +0000 (23:18 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150724

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-10-30
Reviewed by Darin Adler.

* css/CSSParserValues.cpp:
(WebCore::destroy):
Cleanup variable CSSParserValues.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191825 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/css/CSSParserValues.cpp

index 284934722881a197fe77140d47fa6db62f838675..dfb9eed1ecdc31590c55222e90b0f71c3ff90cdf 100644 (file)
@@ -1,3 +1,14 @@
+2015-10-30  Joseph Pecoraro  <pecoraro@apple.com>
+
+        CSSParserVariable leaks seen on leaks bots
+        https://bugs.webkit.org/show_bug.cgi?id=150724
+
+        Reviewed by Darin Adler.
+
+        * css/CSSParserValues.cpp:
+        (WebCore::destroy):
+        Cleanup variable CSSParserValues.
+
 2015-10-30  Alex Christensen  <achristensen@webkit.org>
 
         Fix Windows build.
index 6b0d6ff56939818bd7836cd48ef03639cf626586..7cc393fd61619d45eb760c39cf683ed75d413919 100644 (file)
@@ -40,6 +40,8 @@ void destroy(const CSSParserValue& value)
         delete value.function;
     else if (value.unit == CSSParserValue::ValueList)
         delete value.valueList;
+    else if (value.unit == CSSParserValue::Variable)
+        delete value.variable;
 }
 
 CSSParserValueList::~CSSParserValueList()