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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user