Commit 5a49a6a8 authored by wez@chromium.org's avatar wez@chromium.org

Only clear script objects during PPAPI WebPluginImpl teardown if it was initialized.

BUG=244572,152006

Review URL: https://chromiumcodereview.appspot.com/16023019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202747 0039d316-1c4b-4281-b951-d872f2087c98
parent 274fadfd
......@@ -120,7 +120,8 @@ bool WebPluginImpl::initialize(WebPluginContainer* container) {
void WebPluginImpl::destroy() {
// Tell |container_| to clear references to this plugin's script objects.
container_->clearScriptObjects();
if (container_)
container_->clearScriptObjects();
if (instance_) {
::ppapi::PpapiGlobals::Get()->GetVarTracker()->ReleaseVar(instance_object_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment