When we exit full screen, we place the embedded
view on the screen, so we need to destroy it again
in the destructor
{
WebViewCore* viewImpl = GET_NATIVE_VIEW(env, obj);
PluginWidgetAndroid* plugin = viewImpl->getPluginWidget((NPP)npp);
- plugin->exitFullScreen(false);
+ if (plugin)
+ plugin->exitFullScreen(false);
}
static WebCore::IntRect jrect_to_webrect(JNIEnv* env, jobject obj)
m_core->removePlugin(this);
if (m_isFullScreen) {
exitFullScreen(true);
- } else if (m_embeddedView) {
+ }
+ if (m_embeddedView) {
m_core->destroySurface(m_embeddedView);
}
}