Index: third_party/WebKit/Source/core/css/CSSPathValue.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSPathValue.cpp b/third_party/WebKit/Source/core/css/CSSPathValue.cpp |
index f725d430de82061109b0da6000ed1000a95e6bfe..dcfbf15a0ef0ea179d3552dc8fb3d642e4e14082 100644 |
--- a/third_party/WebKit/Source/core/css/CSSPathValue.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSPathValue.cpp |
@@ -33,9 +33,22 @@ CSSPathValue::~CSSPathValue() |
{ |
} |
+namespace { |
+ |
+PassRefPtrWillBeRawPtr<CSSPathValue> createPathValue() |
+{ |
+ RefPtr<SVGPathByteStream> pathByteStream = SVGPathByteStream::create(); |
+ // Need to be registered as LSan ignored, as it will be reachable and |
+ // separately referred to by emptyPathValue() callers. |
+ LEAK_SANITIZER_IGNORE_OBJECT(pathByteStream.get()); |
+ return CSSPathValue::create(pathByteStream.release()); |
+} |
+ |
+} |
+ |
CSSPathValue* CSSPathValue::emptyPathValue() |
{ |
- DEFINE_STATIC_LOCAL(RefPtrWillBePersistent<CSSPathValue>, empty, (CSSPathValue::create(SVGPathByteStream::create()))); |
+ DEFINE_STATIC_LOCAL(RefPtrWillBePersistent<CSSPathValue>, empty, (createPathValue())); |
return empty.get(); |
} |