| Index: components/plugins/renderer/webview_plugin.cc
|
| diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
|
| index 22c7ed2fd9defc47d16c838bd3e63d88acc0059b..d240cefe7a85b83a074480d4fe384129b8e706b2 100644
|
| --- a/components/plugins/renderer/webview_plugin.cc
|
| +++ b/components/plugins/renderer/webview_plugin.cc
|
| @@ -107,8 +107,10 @@ bool WebViewPlugin::initialize(WebPluginContainer* container) {
|
| }
|
|
|
| void WebViewPlugin::destroy() {
|
| - if (delegate_)
|
| + if (delegate_) {
|
| + delegate_->PluginDestroyed();
|
| delegate_ = NULL;
|
| + }
|
| container_ = NULL;
|
| base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
|
| }
|
|
|