зеркало из https://github.com/mozilla/gecko-dev.git
Bug 620114 - File size of pluginreg.dat increases steadily r=josh a=blocking-betaN
This commit is contained in:
Родитель
e942a76ff0
Коммит
282858f1e4
|
@ -2327,6 +2327,7 @@ nsresult nsPluginHost::FindPlugins(PRBool aCreatePluginList, PRBool * aPluginsCh
|
|||
// no need to proceed if changes are detected
|
||||
if (!aCreatePluginList && *aPluginsChanged) {
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsPluginTag>, mCachedPlugins, mNext);
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsInvalidPluginTag>, mInvalidPlugins, mNext);
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
@ -2353,6 +2354,7 @@ nsresult nsPluginHost::FindPlugins(PRBool aCreatePluginList, PRBool * aPluginsCh
|
|||
// no need to proceed if changes are detected
|
||||
if (!aCreatePluginList && *aPluginsChanged) {
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsPluginTag>, mCachedPlugins, mNext);
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsInvalidPluginTag>, mInvalidPlugins, mNext);
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
@ -2401,6 +2403,7 @@ nsresult nsPluginHost::FindPlugins(PRBool aCreatePluginList, PRBool * aPluginsCh
|
|||
// no need to proceed if changes are detected
|
||||
if (!aCreatePluginList && *aPluginsChanged) {
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsPluginTag>, mCachedPlugins, mNext);
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsInvalidPluginTag>, mInvalidPlugins, mNext);
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
@ -2455,6 +2458,7 @@ nsresult nsPluginHost::FindPlugins(PRBool aCreatePluginList, PRBool * aPluginsCh
|
|||
// if we are not creating the list, there is no need to proceed
|
||||
if (!aCreatePluginList) {
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsPluginTag>, mCachedPlugins, mNext);
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsInvalidPluginTag>, mInvalidPlugins, mNext);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -2465,6 +2469,7 @@ nsresult nsPluginHost::FindPlugins(PRBool aCreatePluginList, PRBool * aPluginsCh
|
|||
|
||||
// No more need for cached plugins. Clear it up.
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsPluginTag>, mCachedPlugins, mNext);
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsInvalidPluginTag>, mInvalidPlugins, mNext);
|
||||
|
||||
// reverse our list of plugins
|
||||
nsRefPtr<nsPluginTag> next;
|
||||
|
@ -2489,6 +2494,7 @@ nsPluginHost::UpdatePluginInfo(nsPluginTag* aPluginTag)
|
|||
ReadPluginInfo();
|
||||
WritePluginInfo();
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsPluginTag>, mCachedPlugins, mNext);
|
||||
NS_ITERATIVE_UNREF_LIST(nsRefPtr<nsInvalidPluginTag>, mInvalidPlugins, mNext);
|
||||
|
||||
if (!aPluginTag || aPluginTag->IsEnabled())
|
||||
return NS_OK;
|
||||
|
@ -2934,7 +2940,7 @@ nsPluginHost::ReadPluginInfo()
|
|||
if (!ReadSectionHeader(reader, "INVALID")) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
while (reader.NextLine()) {
|
||||
const char *fullpath = reader.LinePtr();
|
||||
if (!reader.NextLine()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче