diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-28 01:53:24 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-28 01:53:24 +0000 |
commit | d29971aa0169d57d8248be88a4c79b2f0ad415cb (patch) | |
tree | cf57c4652c434f93d1d9f4b6e987427d5f7bd149 /content/renderer | |
parent | 87e860f8c3d10826456eb54b78696424fe61a786 (diff) | |
download | chromium_src-d29971aa0169d57d8248be88a4c79b2f0ad415cb.zip chromium_src-d29971aa0169d57d8248be88a4c79b2f0ad415cb.tar.gz chromium_src-d29971aa0169d57d8248be88a4c79b2f0ad415cb.tar.bz2 |
Release scriptable object reference when deleting WebPluginDelegateProxy.
BUG=87660
TEST=Open multiple tabs each of which embeds the same NPAPI plugin. Close each tab one by one, and verify that each instance's scriptable object is torn down when the instance is destroyed as a result of the tab closing, rather than when all the tabs have closed.
Review URL: http://codereview.chromium.org/7259011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer')
-rw-r--r-- | content/renderer/webplugin_delegate_proxy.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/renderer/webplugin_delegate_proxy.cc b/content/renderer/webplugin_delegate_proxy.cc index 89ede3e..b6c3619 100644 --- a/content/renderer/webplugin_delegate_proxy.cc +++ b/content/renderer/webplugin_delegate_proxy.cc @@ -201,6 +201,8 @@ WebPluginDelegateProxy::~WebPluginDelegateProxy() { ReleaseTransportDIB(transport_store_.get()); DCHECK(!background_store_.get()); #endif + if (npobject_) + WebBindings::releaseObject(npobject_); } void WebPluginDelegateProxy::PluginDestroyed() { |