Fix a crash in ~PluginViewWin()
[WebKit-https.git] / WebCore / plugins / win / PluginViewWin.cpp
index d69a9a9..9b946e6 100644 (file)
@@ -1157,7 +1157,9 @@ PluginViewWin::~PluginViewWin()
         DestroyWindow(m_window);
 
     m_parentFrame->cleanupScriptObjectsForPlugin(this);
-    m_plugin->unload();
+
+    if (m_plugin)
+        m_plugin->unload();
 }
 
 void PluginViewWin::disconnectStream(PluginStreamWin* stream)