mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
fix bug 9591, mPatchList, hashtable entries not freeup after install finishes
This commit is contained in:
parent
ca4247a0d1
commit
e2d646ed40
@ -1911,6 +1911,15 @@ nsInstall::SaveError(PRInt32 errcode)
|
||||
return errcode;
|
||||
}
|
||||
|
||||
PRBool DeleteEntry(nsHashKey *aKey, void *aData, void *closure)
|
||||
{
|
||||
nsFileSpec* data = (nsFileSpec *)aData;
|
||||
delete data;
|
||||
data = nsnull;
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* CleanUp
|
||||
* call it when done with the install
|
||||
@ -1939,7 +1948,8 @@ nsInstall::CleanUp(void)
|
||||
|
||||
if (mPatchList)
|
||||
{
|
||||
// XXX do I need to delete every entry?
|
||||
mPatchList->Enumerate(DeleteEntry, nsnull);
|
||||
mPatchList->Reset();
|
||||
delete mPatchList;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user