if (error == NS_OK) thePlugin->Initialize(thePluginManager);
if (error == NS_OK) { thePlugin->AddRef(); thePlugin->Initialize(thePluginManager); } }
NPP_Initialize(void){//    TRACE("NPP_Initialize\n");    // Only call initialize the plugin if it hasn't been created.    // This could happen if GetJavaClass() is called before    // NPP Initialize.      if (thePluginManager == NULL) {        // Create the plugin manager and plugin classes.        thePluginManager = new CPluginManager();	        if ( thePluginManager == NULL )             return NPERR_OUT_OF_MEMORY_ERROR;          thePluginManager->AddRef();    }    nsresult error = NS_OK;      // On UNIX the plugin might have been created when calling NPP_GetMIMEType.    if (thePlugin == NULL)        // create nsIPlugin factory        error = (NPError)NSGetFactory(kIPluginIID, (nsIFactory**) &thePlugin);    if (error == NS_OK)        thePlugin->Initialize(thePluginManager);    return (NPError) error;	}