summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/xml/document_xpath_evaluator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/xml/document_xpath_evaluator.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/xml/document_xpath_evaluator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/xml/document_xpath_evaluator.cc b/chromium/third_party/blink/renderer/core/xml/document_xpath_evaluator.cc
index e1a1491106c..a2538cc2ef7 100644
--- a/chromium/third_party/blink/renderer/core/xml/document_xpath_evaluator.cc
+++ b/chromium/third_party/blink/renderer/core/xml/document_xpath_evaluator.cc
@@ -42,7 +42,7 @@ DocumentXPathEvaluator& DocumentXPathEvaluator::From(Document& document) {
DocumentXPathEvaluator* cache =
Supplement<Document>::From<DocumentXPathEvaluator>(document);
if (!cache) {
- cache = new DocumentXPathEvaluator(document);
+ cache = MakeGarbageCollected<DocumentXPathEvaluator>(document);
Supplement<Document>::ProvideTo(document, cache);
}
return *cache;