Correction to the fix to bug 104940 (r=peterl, sr=waterson) -- memory leak avoided
git-svn-id: svn://10.0.0.236/trunk@105575 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -4366,8 +4366,10 @@ nsresult nsPluginHostImpl::ScanPluginsDirectory(nsPluginsDir& pluginsDir,
|
||||
continue;
|
||||
|
||||
// if we don't have mime type -- don't proceed, this is not a plugin
|
||||
if(!info.fMimeTypeArray)
|
||||
if(!info.fMimeTypeArray) {
|
||||
pluginFile.FreePluginInfo(info);
|
||||
continue;
|
||||
}
|
||||
|
||||
nsPluginTag* pluginTag = new nsPluginTag(&info);
|
||||
pluginFile.FreePluginInfo(info);
|
||||
|
||||
Reference in New Issue
Block a user