mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 505886 nsHashtable::Exists doesn't unlock mLock if !mHashtable.ops
r=bsmedberg
This commit is contained in:
parent
191308c5ea
commit
1a965c5ef0
@ -188,8 +188,10 @@ PRBool nsHashtable::Exists(nsHashKey *aKey)
|
||||
{
|
||||
if (mLock) PR_Lock(mLock);
|
||||
|
||||
if (!mHashtable.ops)
|
||||
if (!mHashtable.ops) {
|
||||
if (mLock) PR_Unlock(mLock);
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
PLDHashEntryHdr *entry =
|
||||
PL_DHashTableOperate(&mHashtable, aKey, PL_DHASH_LOOKUP);
|
||||
|
Loading…
Reference in New Issue
Block a user