Fixed problem that BS occurs when webview is deleted.
authorbunam.jeon <bunam.jeon@samsung.com>
Fri, 11 Oct 2013 11:16:00 +0000 (20:16 +0900)
committerbunam.jeon <bunam.jeon@samsung.com>
Fri, 11 Oct 2013 11:25:44 +0000 (20:25 +0900)
[Title]    Fixed problem that BS occurs when webview is deleted.
[Issue#]   N/A
[Problem]  BS occurs when webview is deleted.
[Cause]    Invalid read occurs when webview is deleted.
[Solution] Unnecessary code delete.

Change-Id: I92335c44bf4ec8e12f4ebc0bbdc2a0100e64f069

Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp

index 53baa39..c74796f 100755 (executable)
@@ -145,8 +145,11 @@ PageClientImpl::PageClientImpl(EwkViewImpl* viewImpl)
 
 PageClientImpl::~PageClientImpl()
 {
+#if !OS(TIZEN)
+    // FIXME: According to the open source, ~WebPageProxy() must move here.
     if (m_viewImpl && m_viewImpl->page())
         m_viewImpl->page()->close();
+#endif
 }
 
 #if OS(TIZEN)
@@ -1507,8 +1510,11 @@ PageClientEvasGL::PageClientEvasGL(EwkViewImpl* viewImpl)
 
 PageClientEvasGL::~PageClientEvasGL()
 {
+#if !OS(TIZEN)
+    // FIXME: It should be compared with open source.
     if (m_viewImpl && m_viewImpl->page())
         m_viewImpl->page()->close();
+#endif
 }
 
 void PageClientEvasGL::updateViewportSize(const WebCore::IntSize& viewportSize)