Index: Source/modules/serviceworkers/ServiceWorkerRegistration.cpp |
diff --git a/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp b/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp |
index a23cab98b7b955de535a6fad48827c00f4df716d..999df873b2cd8487d0d6f81d3a3195d22beb8d7d 100644 |
--- a/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp |
+++ b/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp |
@@ -90,7 +90,8 @@ ServiceWorkerRegistration* ServiceWorkerRegistration::take(ScriptPromiseResolver |
void ServiceWorkerRegistration::dispose(WebType* registration) |
{ |
- delete registration; |
+ if (registration && !registration->proxy()) |
+ delete registration; |
} |
String ServiceWorkerRegistration::scope() const |