Index: Source/modules/presentation/PresentationAvailabilityCallback.cpp |
diff --git a/Source/modules/presentation/PresentationAvailabilityCallback.cpp b/Source/modules/presentation/PresentationAvailabilityCallback.cpp |
index 96b8ae93cf93851b5bdaddfedf0b586b3ef90d7d..42d63bb3e60da09dc71bfcf5afe6c667d1d29921 100644 |
--- a/Source/modules/presentation/PresentationAvailabilityCallback.cpp |
+++ b/Source/modules/presentation/PresentationAvailabilityCallback.cpp |
@@ -31,7 +31,7 @@ void PresentationAvailabilityCallback::onError(WebPresentationError* result) |
OwnPtr<WebPresentationError> error = adoptPtr(result); |
if (!m_resolver->executionContext() || m_resolver->executionContext()->activeDOMObjectsAreStopped()) |
return; |
- m_resolver->reject(PresentationError::take(m_resolver.get(), error.release())); |
+ m_resolver->reject(PresentationError::take(m_resolver.get(), *error)); |
} |
} // namespace blink |