| Index: webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| index 1b6ff947aa7bfd1d22902ab6df17623914cb52df..bed914c46765ae79ef4671a5f6ce09d7848eebc7 100644
|
| --- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| @@ -353,6 +353,11 @@ PluginInstance::~PluginInstance() {
|
| void PluginInstance::Delete() {
|
| // Keep a reference on the stack. See NOTE above.
|
| scoped_refptr<PluginInstance> ref(this);
|
| + // Force the MessageChannel to release its "passthrough object" which should
|
| + // release our last reference to the "InstanceObject" and will probably
|
| + // destroy it. We want to do this prior to calling DidDestroy in case the
|
| + // destructor of the instance object tries to use the instance.
|
| + message_channel_->SetPassthroughObject(NULL);
|
| instance_interface_->DidDestroy(pp_instance());
|
|
|
| if (fullscreen_container_) {
|
|
|