mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Fix for 33536, r=serge
This commit is contained in:
parent
64a312c5a1
commit
8f89e6a0ae
@ -153,17 +153,25 @@ nsPluginTag::nsPluginTag(nsPluginInfo* aPluginInfo)
|
||||
mExtensions = new_str(aPluginInfo->fExtensions);
|
||||
mVariants = aPluginInfo->fVariantCount;
|
||||
|
||||
mMimeTypeArray = new char*[mVariants];
|
||||
mMimeDescriptionArray = new char*[mVariants];
|
||||
mExtensionsArray = new char*[mVariants];
|
||||
|
||||
if(mMimeTypeArray && mMimeDescriptionArray && mExtensionsArray)
|
||||
mMimeTypeArray = new char*[mVariants];
|
||||
if(aPluginInfo->fMimeTypeArray != nsnull)
|
||||
{
|
||||
for (int i = 0; i < mVariants; i++) {
|
||||
for (int i = 0; i < mVariants; i++)
|
||||
mMimeTypeArray[i] = new_str(aPluginInfo->fMimeTypeArray[i]);
|
||||
}
|
||||
|
||||
mMimeDescriptionArray = new char*[mVariants];
|
||||
if(aPluginInfo->fMimeDescriptionArray != nsnull)
|
||||
{
|
||||
for (int i = 0; i < mVariants; i++)
|
||||
mMimeDescriptionArray[i] = new_str(aPluginInfo->fMimeDescriptionArray[i]);
|
||||
}
|
||||
|
||||
mExtensionsArray = new char*[mVariants];
|
||||
if(aPluginInfo->fExtensionArray != nsnull)
|
||||
{
|
||||
for (int i = 0; i < mVariants; i++)
|
||||
mExtensionsArray[i] = new_str(aPluginInfo->fExtensionArray[i]);
|
||||
}
|
||||
}
|
||||
|
||||
mFileName = new_str(aPluginInfo->fFileName);
|
||||
|
@ -153,17 +153,25 @@ nsPluginTag::nsPluginTag(nsPluginInfo* aPluginInfo)
|
||||
mExtensions = new_str(aPluginInfo->fExtensions);
|
||||
mVariants = aPluginInfo->fVariantCount;
|
||||
|
||||
mMimeTypeArray = new char*[mVariants];
|
||||
mMimeDescriptionArray = new char*[mVariants];
|
||||
mExtensionsArray = new char*[mVariants];
|
||||
|
||||
if(mMimeTypeArray && mMimeDescriptionArray && mExtensionsArray)
|
||||
mMimeTypeArray = new char*[mVariants];
|
||||
if(aPluginInfo->fMimeTypeArray != nsnull)
|
||||
{
|
||||
for (int i = 0; i < mVariants; i++) {
|
||||
for (int i = 0; i < mVariants; i++)
|
||||
mMimeTypeArray[i] = new_str(aPluginInfo->fMimeTypeArray[i]);
|
||||
}
|
||||
|
||||
mMimeDescriptionArray = new char*[mVariants];
|
||||
if(aPluginInfo->fMimeDescriptionArray != nsnull)
|
||||
{
|
||||
for (int i = 0; i < mVariants; i++)
|
||||
mMimeDescriptionArray[i] = new_str(aPluginInfo->fMimeDescriptionArray[i]);
|
||||
}
|
||||
|
||||
mExtensionsArray = new char*[mVariants];
|
||||
if(aPluginInfo->fExtensionArray != nsnull)
|
||||
{
|
||||
for (int i = 0; i < mVariants; i++)
|
||||
mExtensionsArray[i] = new_str(aPluginInfo->fExtensionArray[i]);
|
||||
}
|
||||
}
|
||||
|
||||
mFileName = new_str(aPluginInfo->fFileName);
|
||||
|
Loading…
Reference in New Issue
Block a user