mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
Fix leak of pluginFileInDirectory objects from ScanPluginsDirectory(). Patch by dbradley@netscape.com, r=peterl, sr=me.
This commit is contained in:
parent
646b3a67ec
commit
fbaaafee40
@ -4885,11 +4885,11 @@ nsresult nsPluginHostImpl::ScanPluginsDirectory(nsIFile * pluginsDir,
|
||||
nsCOMPtr <nsILocalFile> localfile = do_QueryInterface(file);
|
||||
localfile->InitWithPath(pfd->mFilename);
|
||||
PRInt64 fileModTime = pfd->mModTime;
|
||||
//delete pfd;
|
||||
|
||||
// Look for it in our cache
|
||||
nsPluginTag *pluginTag = RemoveCachedPluginsInfo(NS_ConvertUCS2toUTF8(pfd->mFilename).get());
|
||||
|
||||
delete pfd;
|
||||
if (pluginTag) {
|
||||
// If plugin changed, delete cachedPluginTag and dont use cache
|
||||
if (LL_NE(fileModTime, pluginTag->mLastModifiedTime)) {
|
||||
|
Loading…
Reference in New Issue
Block a user