| Index: third_party/WebKit/Source/platform/text/PlatformLocale.cpp
|
| diff --git a/third_party/WebKit/Source/platform/text/PlatformLocale.cpp b/third_party/WebKit/Source/platform/text/PlatformLocale.cpp
|
| index 3641a7c7935578b7e6912e56efe8905f2bb57e4c..d4a0f568e457d2b0e65f96c3b1a838a512e74350 100644
|
| --- a/third_party/WebKit/Source/platform/text/PlatformLocale.cpp
|
| +++ b/third_party/WebKit/Source/platform/text/PlatformLocale.cpp
|
| @@ -33,6 +33,7 @@
|
| #include "platform/text/DateTimeFormat.h"
|
| #include "public/platform/Platform.h"
|
| #include "wtf/text/StringBuilder.h"
|
| +#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -176,7 +177,7 @@ String DateTimeStringBuilder::toString()
|
|
|
| Locale& Locale::defaultLocale()
|
| {
|
| - static Locale* locale = Locale::create(defaultLanguage()).leakPtr();
|
| + static Locale* locale = Locale::create(defaultLanguage()).release();
|
| ASSERT(isMainThread());
|
| return *locale;
|
| }
|
|
|