mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1202526 (part 5) - Use PLDHashTable::RemoveEntry() in nsSecureBrowserUIImpl. r=dkeeler.
This avoids repeating the hash table search in order to remove the entry.
This commit is contained in:
parent
1cdf909da8
commit
0c46c656b9
@ -872,8 +872,10 @@ nsSecureBrowserUIImpl::OnStateChange(nsIWebProgress* aWebProgress,
|
||||
{
|
||||
{ /* scope for the ReentrantMonitorAutoEnter */
|
||||
ReentrantMonitorAutoEnter lock(mReentrantMonitor);
|
||||
if (PL_DHashTableSearch(&mTransferringRequests, aRequest)) {
|
||||
PL_DHashTableRemove(&mTransferringRequests, aRequest);
|
||||
PLDHashEntryHdr* entry =
|
||||
PL_DHashTableSearch(&mTransferringRequests, aRequest);
|
||||
if (entry) {
|
||||
mTransferringRequests.RemoveEntry(entry);
|
||||
requestHasTransferedData = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user