| Index: Source/modules/background_sync/PeriodicSyncRegistration.cpp
|
| diff --git a/Source/modules/background_sync/PeriodicSyncRegistration.cpp b/Source/modules/background_sync/PeriodicSyncRegistration.cpp
|
| index bd9865caa70bf22a4e685cd3a7526811c178b99a..092da01b94407745901977bdc5ff78595073c1e4 100644
|
| --- a/Source/modules/background_sync/PeriodicSyncRegistration.cpp
|
| +++ b/Source/modules/background_sync/PeriodicSyncRegistration.cpp
|
| @@ -66,6 +66,13 @@ PeriodicSyncRegistration::PeriodicSyncRegistration(int64_t id, const PeriodicSyn
|
|
|
| PeriodicSyncRegistration::~PeriodicSyncRegistration()
|
| {
|
| + Platform* currentPlatform = Platform::current();
|
| + if (!currentPlatform)
|
| + return;
|
| + WebSyncProvider* syncProvider = currentPlatform->backgroundSyncProvider();
|
| + if (!syncProvider)
|
| + return;
|
| + syncProvider->releaseRegistration(m_id);
|
| }
|
|
|
| ScriptPromise PeriodicSyncRegistration::unregister(ScriptState* scriptState)
|
|
|