Index: Source/modules/push_messaging/PushPermissionStatusCallbacks.cpp |
diff --git a/Source/modules/push_messaging/PushPermissionStatusCallbacks.cpp b/Source/modules/push_messaging/PushPermissionStatusCallbacks.cpp |
index 2e94ed4cb17dd199e067a7d46e7c5ee94788b73e..39eb597bd87befe850b2211fb61a68d648e49d82 100644 |
--- a/Source/modules/push_messaging/PushPermissionStatusCallbacks.cpp |
+++ b/Source/modules/push_messaging/PushPermissionStatusCallbacks.cpp |
@@ -30,7 +30,7 @@ void PushPermissionStatusCallbacks::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)); |
} |
// static |