https://bugs.webkit.org/show_bug.cgi?id=141026
Reviewed by Brent Fulgham.
Forgot to actually fix the leak in the successful parse case!
* css/CSSParser.cpp:
(WebCore::CSSParser::sourceSize): Added a call to destroy.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@179539
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-02-02 Darin Adler <darin@apple.com>
+
+ REGRESSION (r170576): Storage leaks in parsing of CSS image sizes
+ https://bugs.webkit.org/show_bug.cgi?id=141026
+
+ Reviewed by Brent Fulgham.
+
+ Forgot to actually fix the leak in the successful parse case!
+
+ * css/CSSParser.cpp:
+ (WebCore::CSSParser::sourceSize): Added a call to destroy.
+
2015-02-02 Benjamin Poulain <benjamin@webkit.org>
JIT Compile simple cases of :nth-last-child()
}
if (!value)
value = parserValue.createCSSValue();
+ destroy(parserValue);
// FIXME: Calling the constructor explicitly here to work around an MSVC bug.
- // With the other compilers, this works without explicitly stating the type name SourceSize or using a local.
+ // For other compilers, we did not need to define the constructors and we could use aggregate initialization syntax.
return SourceSize(WTF::move(expression), WTF::move(value));
}