src/3rdparty/webkit/WebCore/plugins/symbian/PluginViewSymbian.cpp
branchRCL_3
changeset 9 740e5562c97f
parent 8 3f74d0d4af4c
child 15 8c4229025c0b
--- a/src/3rdparty/webkit/WebCore/plugins/symbian/PluginViewSymbian.cpp	Thu Apr 08 14:19:33 2010 +0300
+++ b/src/3rdparty/webkit/WebCore/plugins/symbian/PluginViewSymbian.cpp	Fri Apr 16 11:39:52 2010 +0300
@@ -453,7 +453,7 @@
 void PluginView::platformDestroy()
 {
     QWebPageClient* client = m_parentFrame->view()->hostWindow()->platformPageClient();
-    if (QGraphicsWebView *webView = qobject_cast<QGraphicsWebView*>(client->pluginParent()))
+    if (client && qobject_cast<QGraphicsWebView*>(client->pluginParent()))
         delete static_cast<PluginContainerSymbian*>(platformPluginWidget())->proxy();
     else
         delete platformPluginWidget();