зеркало из https://github.com/mozilla/gecko-dev.git
Bug 467648. Fix shutdown leak by making sure to clear out the deferred DNS prefetch queue at shutdown. r+sr=bzbarsky
This commit is contained in:
Родитель
9d496c3394
Коммит
5039056a9e
|
@ -203,6 +203,14 @@ nsHTMLDNSPrefetch::nsDeferrals::nsDeferrals()
|
|||
{
|
||||
}
|
||||
|
||||
nsHTMLDNSPrefetch::nsDeferrals::~nsDeferrals()
|
||||
{
|
||||
while (mHead != mTail) {
|
||||
mEntries[mTail].mURI = nsnull;
|
||||
mTail = (mTail + 1) & sMaxDeferredMask;
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMPL_THREADSAFE_ISUPPORTS3(nsHTMLDNSPrefetch::nsDeferrals,
|
||||
nsIDNSListener,
|
||||
nsIWebProgressListener,
|
||||
|
|
|
@ -96,7 +96,7 @@ public:
|
|||
nsresult Add(PRUint16 flags, nsIURI *aURI);
|
||||
|
||||
private:
|
||||
~nsDeferrals() {}
|
||||
~nsDeferrals();
|
||||
|
||||
void SubmitQueue();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче