Bug 516524 - Support NPRuntime across processes. r=bsmedberg.
This commit is contained in:
@@ -102,6 +102,7 @@ PluginModuleParent::DeallocPPluginInstance(PPluginInstanceParent* aActor,
|
||||
{
|
||||
_MOZ_LOG(__FUNCTION__);
|
||||
delete aActor;
|
||||
*_retval = NPERR_NO_ERROR;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -225,6 +226,8 @@ PluginModuleParent::NPP_Destroy(NPP instance,
|
||||
PluginInstanceParent* parentInstance =
|
||||
static_cast<PluginInstanceParent*>(instance->pdata);
|
||||
|
||||
parentInstance->Destroy();
|
||||
|
||||
NPError prv;
|
||||
if (!Shim::HACK_target->CallPPluginInstanceDestructor(parentInstance, &prv)) {
|
||||
prv = NPERR_GENERIC_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user