src/3rdparty/webkit/WebCore/plugins/symbian/PluginViewSymbian.cpp
branchRCL_3
changeset 9 740e5562c97f
parent 8 3f74d0d4af4c
child 15 8c4229025c0b
equal deleted inserted replaced
8:3f74d0d4af4c 9:740e5562c97f
   451 }
   451 }
   452 
   452 
   453 void PluginView::platformDestroy()
   453 void PluginView::platformDestroy()
   454 {
   454 {
   455     QWebPageClient* client = m_parentFrame->view()->hostWindow()->platformPageClient();
   455     QWebPageClient* client = m_parentFrame->view()->hostWindow()->platformPageClient();
   456     if (QGraphicsWebView *webView = qobject_cast<QGraphicsWebView*>(client->pluginParent()))
   456     if (client && qobject_cast<QGraphicsWebView*>(client->pluginParent()))
   457         delete static_cast<PluginContainerSymbian*>(platformPluginWidget())->proxy();
   457         delete static_cast<PluginContainerSymbian*>(platformPluginWidget())->proxy();
   458     else
   458     else
   459         delete platformPluginWidget();
   459         delete platformPluginWidget();
   460 }
   460 }
   461 
   461