Index: Source/web/WebPagePopupImpl.cpp |
diff --git a/Source/web/WebPagePopupImpl.cpp b/Source/web/WebPagePopupImpl.cpp |
index 010344573f7e516f710bf7d0f402c2ed91a4ac13..6614aeae651187b7bbe1f25ff553c7b808b8c03e 100644 |
--- a/Source/web/WebPagePopupImpl.cpp |
+++ b/Source/web/WebPagePopupImpl.cpp |
@@ -210,8 +210,7 @@ bool WebPagePopupImpl::initializePage() |
m_page->setDeviceScaleFactor(m_webView->deviceScaleFactor()); |
m_page->settings().setDeviceSupportsTouch(m_webView->page()->settings().deviceSupportsTouch()); |
- static ContextFeaturesClient* pagePopupFeaturesClient = new PagePopupFeaturesClient(); |
- provideContextFeaturesTo(*m_page, pagePopupFeaturesClient); |
+ provideContextFeaturesTo(*m_page, adoptPtr(new PagePopupFeaturesClient())); |
static FrameLoaderClient* emptyFrameLoaderClient = new EmptyFrameLoaderClient(); |
RefPtr<LocalFrame> frame = LocalFrame::create(emptyFrameLoaderClient, &m_page->frameHost(), 0); |
frame->setView(FrameView::create(frame.get())); |