Bug 547316 - Plugin window subclass is not reset when CallNPP_Destroy fails, r=bent

This commit is contained in:
Benjamin Smedberg 2010-02-19 17:08:16 -05:00
parent 8f8fd2d8d6
commit 3b1352e4df

View File

@ -134,10 +134,8 @@ NPError
PluginInstanceParent::Destroy()
{
NPError retval;
if (!CallNPP_Destroy(&retval)) {
NS_WARNING("Failed to send message!");
return NPERR_GENERIC_ERROR;
}
if (!CallNPP_Destroy(&retval))
retval = NPERR_GENERIC_ERROR;
#if defined(OS_WIN)
SharedSurfaceRelease();