зеркало из https://github.com/mozilla/pjs.git
Bug 200697 - Make nsPermissionManager use hashtables, decrease memory used
patch by dwitte@stanford.edu r=bsmedberg@covad.net sr=alecf a=asa
This commit is contained in:
Родитель
eb9f0acb11
Коммит
ac97252db6
|
@ -301,8 +301,7 @@ nsPermissionManager::Remove(const nsACString &aHost,
|
||||||
|
|
||||||
// If no more types are present, remove the entry
|
// If no more types are present, remove the entry
|
||||||
if (entry->PermissionsAreEmpty()) {
|
if (entry->PermissionsAreEmpty()) {
|
||||||
//XXX Use RawRemove here, when bug 201034 is fixed
|
mHostTable.RawRemoveEntry(entry);
|
||||||
mHostTable.RemoveEntry(PromiseFlatCString(aHost).get());
|
|
||||||
--mHostCount;
|
--mHostCount;
|
||||||
}
|
}
|
||||||
mChangedList = PR_TRUE;
|
mChangedList = PR_TRUE;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче