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..5a3d122d19c05871c18f8d308f5e749ea42a09db 100644 |
--- a/Source/modules/background_sync/PeriodicSyncRegistration.cpp |
+++ b/Source/modules/background_sync/PeriodicSyncRegistration.cpp |
@@ -66,6 +66,9 @@ PeriodicSyncRegistration::PeriodicSyncRegistration(int64_t id, const PeriodicSyn |
PeriodicSyncRegistration::~PeriodicSyncRegistration() |
{ |
+ WebSyncProvider* webSyncProvider = Platform::current()->backgroundSyncProvider(); |
+ ASSERT(webSyncProvider); |
+ webSyncProvider->releaseRegistration(m_id); |
} |
ScriptPromise PeriodicSyncRegistration::unregister(ScriptState* scriptState) |