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 e77101af10e533e53884a4708b963836c6874ba5..7e4fa31c239a7dd30db945cc360662513b0966d4 100644 |
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc |
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc |
@@ -489,6 +489,8 @@ PluginInstance::~PluginInstance() { |
if (original_module_.get()) |
original_module_->InstanceDeleted(this); |
+ // This should be last since some of the above "instance deleted" calls will |
+ // want to look up in the global map to get info off of our object. |
HostGlobals::Get()->InstanceDeleted(pp_instance_); |
} |