Bug 540868 part 2: keep all NPObjects (not just those with actors) in mObjectMap, and invalidate/deallocate them when we destroy the associated instance, r=bent

This commit is contained in:
Benjamin Smedberg
2010-01-22 10:06:13 -05:00
parent 3a6b8dedcf
commit 7cd34da920
8 changed files with 206 additions and 143 deletions

View File

@@ -245,10 +245,7 @@ PluginModuleParent::NPP_Destroy(NPP instance,
NPError retval = parentInstance->Destroy();
instance->pdata = nsnull;
if (!PluginInstanceParent::Call__delete__(parentInstance)) {
NS_ERROR("Failed to delete instance!");
}
(void) PluginInstanceParent::Call__delete__(parentInstance);
return retval;
}