зеркало из https://github.com/mozilla/pjs.git
population of filename for plugins at load time, and freeing of that variable as well.
This commit is contained in:
Родитель
9cf374369c
Коммит
31384fcdb8
|
@ -243,6 +243,8 @@ nsresult nsPluginFile::GetPluginInfo(nsPluginInfo& info)
|
|||
plugin->GetValue(nsPluginVariable_DescriptionString, &description);
|
||||
info.fDescription = PL_strdup(description);
|
||||
|
||||
info.fFileName = PL_strdup(this->GetCString());
|
||||
|
||||
plugin->GetMIMEDescription(&mimedescr);
|
||||
} else {
|
||||
info.fName = PL_strdup(this->GetCString());
|
||||
|
@ -340,5 +342,8 @@ nsresult nsPluginFile::FreePluginInfo(nsPluginInfo& info)
|
|||
PR_FREEIF(info.fMimeDescriptionArray);
|
||||
PR_FREEIF(info.fExtensionArray);
|
||||
|
||||
if(info.fFileName != nsnull)
|
||||
PL_strfree(info.fFileName);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -243,6 +243,8 @@ nsresult nsPluginFile::GetPluginInfo(nsPluginInfo& info)
|
|||
plugin->GetValue(nsPluginVariable_DescriptionString, &description);
|
||||
info.fDescription = PL_strdup(description);
|
||||
|
||||
info.fFileName = PL_strdup(this->GetCString());
|
||||
|
||||
plugin->GetMIMEDescription(&mimedescr);
|
||||
} else {
|
||||
info.fName = PL_strdup(this->GetCString());
|
||||
|
@ -340,5 +342,8 @@ nsresult nsPluginFile::FreePluginInfo(nsPluginInfo& info)
|
|||
PR_FREEIF(info.fMimeDescriptionArray);
|
||||
PR_FREEIF(info.fExtensionArray);
|
||||
|
||||
if(info.fFileName != nsnull)
|
||||
PL_strfree(info.fFileName);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче