Bug 127280. Approved by don. Make sure reference count is properly initialized in NP_LoadPluginByType().
git-svn-id: svn://10.0.0.236/trunk@4010 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -4204,6 +4204,11 @@ NPL_LoadPluginByType(const char* typeAttribute)
|
||||
return NULL;
|
||||
}
|
||||
loaded = PR_TRUE;
|
||||
|
||||
// Give the handle a ref so we know not to load it again.
|
||||
// XXX How do we ever _unload_ it once this routine
|
||||
// has been called???
|
||||
handle->refs = 1;
|
||||
#ifdef JAVA
|
||||
/*
|
||||
** Don't use npn_getJavaEnv here. We don't want to start the
|
||||
|
||||
Reference in New Issue
Block a user