Bug 505886 nsHashtable::Exists doesn't unlock mLock if !mHashtable.ops

r=bsmedberg
This commit is contained in:
timeless@mozdev.org 2009-08-12 11:49:53 +02:00
parent 191308c5ea
commit 1a965c5ef0

View File

@ -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);