| Index: third_party/WebKit/Source/core/loader/BeaconLoader.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/BeaconLoader.cpp b/third_party/WebKit/Source/core/loader/BeaconLoader.cpp
|
| index 077f05d54581a85ec9c6c46065d3535e8374650b..8e33dfe9cf6e86275dd5ec16590d75926ddc526a 100644
|
| --- a/third_party/WebKit/Source/core/loader/BeaconLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/BeaconLoader.cpp
|
| @@ -97,9 +97,9 @@ public:
|
| FetchInitiatorInfo initiatorInfo;
|
| initiatorInfo.name = FetchInitiatorTypeNames::beacon;
|
|
|
| - // Leak the loader, since it will kill itself as soon as it receives a response.
|
| - RawPtr<BeaconLoader> loader = new BeaconLoader(frame, request, initiatorInfo, AllowStoredCredentials);
|
| - loader->ref();
|
| + // The loader keeps itself alive until it receives a response and disposes itself.
|
| + BeaconLoader* loader = new BeaconLoader(frame, request, initiatorInfo, AllowStoredCredentials);
|
| + ASSERT_UNUSED(loader, loader);
|
| return true;
|
| }
|
| };
|
|
|