Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Unified Diff: Source/core/css/CSSParserValuesTest.cpp

Issue 277433002: MQParser memory leak fix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamed clear to clearAndLeakValues Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSParserValues.cpp ('k') | Source/core/css/parser/MediaQueryParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSParserValuesTest.cpp
diff --git a/Source/core/css/CSSParserValuesTest.cpp b/Source/core/css/CSSParserValuesTest.cpp
index 7e4341189fea4e4a767ca8f5ceb2b8c4307406e0..5e7bd926f4031ed705745fd054f57264850f5133 100644
--- a/Source/core/css/CSSParserValuesTest.cpp
+++ b/Source/core/css/CSSParserValuesTest.cpp
@@ -92,7 +92,7 @@ TEST(CSSParserValuesTest, CSSParserValuelistClear)
value.setFromNumber(3);
list.addValue(value);
}
- list.clear();
+ list.clearAndLeakValues();
ASSERT_FALSE(list.size());
ASSERT_FALSE(list.currentIndex());
}
« no previous file with comments | « Source/core/css/CSSParserValues.cpp ('k') | Source/core/css/parser/MediaQueryParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698