Index: Source/modules/push_messaging/PushSubscriptionCallbacks.cpp |
diff --git a/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp b/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp |
index 546f3a748cf9c99d14bc1992f9b034d611174848..963350cd67787919ac43775a1867d61960380647 100644 |
--- a/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp |
+++ b/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp |
@@ -41,7 +41,7 @@ void PushSubscriptionCallbacks::onError(WebPushError* error) |
OwnPtr<WebPushError> ownError = adoptPtr(error); |
if (!m_resolver->executionContext() || m_resolver->executionContext()->activeDOMObjectsAreStopped()) |
return; |
- m_resolver->reject(PushError::take(m_resolver.get(), ownError.release())); |
+ m_resolver->reject(PushError::take(m_resolver.get(), *ownError)); |
} |
} // namespace blink |