diff --git a/dom/plugins/PluginModuleParent.cpp b/dom/plugins/PluginModuleParent.cpp index 84c8e546fadd..5bdf5d818c03 100644 --- a/dom/plugins/PluginModuleParent.cpp +++ b/dom/plugins/PluginModuleParent.cpp @@ -737,7 +737,7 @@ PluginModuleParent::NPP_New(NPMIMEType pluginType, NPP instance, if (*error != NPERR_NO_ERROR) { NPP_Destroy(instance, 0); - return *error; + return NS_ERROR_FAILURE; } return NS_OK;