Commit 03347ab4 authored by darin@apple.com's avatar darin@apple.com

Fix a couple stray uses of RefPtr that should release

https://bugs.webkit.org/show_bug.cgi?id=125679

Reviewed by Andreas Kling.

* css/CSSParser.cpp:
(WebCore::CSSParser::parseFilter): Add calls to release, in
one case rearranging the order of operations slightly so we
don't release the pointer before using it.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1ab645b4
2013-12-13 Darin Adler <darin@apple.com>
Fix a couple stray uses of RefPtr that should release
https://bugs.webkit.org/show_bug.cgi?id=125679
Reviewed by Andreas Kling.
* css/CSSParser.cpp:
(WebCore::CSSParser::parseFilter): Add calls to release, in
one case rearranging the order of operations slightly so we
don't release the pointer before using it.
2013-12-12 Alexey Proskuryakov <ap@apple.com>
WebCrypto wrapKey operation doesn't check key usage
......@@ -9762,8 +9762,8 @@ bool CSSParser::parseFilter(CSSParserValueList* valueList, RefPtr<CSSValue>& res
if (value->unit == CSSPrimitiveValue::CSS_URI) {
#if ENABLE(SVG)
RefPtr<WebKitCSSFilterValue> referenceFilterValue = WebKitCSSFilterValue::create(WebKitCSSFilterValue::ReferenceFilterOperation);
list->append(referenceFilterValue);
referenceFilterValue->append(WebKitCSSSVGDocumentValue::create(value->string));
list->append(referenceFilterValue.release());
#endif
} else {
const CSSParserString name = value->function->name;
......@@ -9795,7 +9795,7 @@ bool CSSParser::parseFilter(CSSParserValueList* valueList, RefPtr<CSSValue>& res
if (!filterValue)
return false;
list->append(filterValue);
list->append(filterValue.release());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment