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:
waterson
1998-06-17 21:15:23 +00:00
parent 6e6aecec3d
commit e050825d32

View File

@@ -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