if(mPluginWindow.type == nsPluginWindowType_Drawable)
if(mPluginWindow && mPluginWindow->type == nsPluginWindowType_Drawable)
nsPluginPort* nsPluginInstanceOwner::GetPluginPort(){//!!! Port must be released for windowless plugins on Windows, because it is HDC !!!  nsPluginPort* result = NULL;    if (mWidget != NULL)  {#ifdef XP_WIN    if(mPluginWindow.type == nsPluginWindowType_Drawable)      result = (nsPluginPort*) mWidget->GetNativeData(NS_NATIVE_GRAPHIC);    else#endif      result = (nsPluginPort*) mWidget->GetNativeData(NS_NATIVE_PLUGIN_PORT);    }    return result;}