Index: Source/modules/background_sync/SyncRegistration.cpp |
diff --git a/Source/modules/background_sync/SyncRegistration.cpp b/Source/modules/background_sync/SyncRegistration.cpp |
index 00783683f8245ffcb02b5fba2319c89df8b53fe6..09db739ecb21a9910a6a8b295942e87a79b897a7 100644 |
--- a/Source/modules/background_sync/SyncRegistration.cpp |
+++ b/Source/modules/background_sync/SyncRegistration.cpp |
@@ -48,6 +48,9 @@ SyncRegistration::SyncRegistration(int64_t id, const SyncRegistrationOptions& op |
SyncRegistration::~SyncRegistration() |
{ |
+ WebSyncProvider* webSyncProvider = Platform::current()->backgroundSyncProvider(); |
+ ASSERT(webSyncProvider); |
+ webSyncProvider->releaseRegistration(m_id); |
} |
ScriptPromise SyncRegistration::done(ScriptState* scriptState) |