Bug 405025 ASSERT_VALID_LOCK failed r=gijs a=dsicore
authortimeless@mozdev.org
Tue, 26 Feb 2008 07:07:05 -0800
changeset 12260 df722c9fedea3bb476410fd073ba6cec1208e895
parent 12259 5261fc0c25a3348c1cee0f3bfb21c06a793b3047
child 12261 d8a881a1eada6c04d3a8fe80c6c095a8d653f1d4
push idunknown
push userunknown
push dateunknown
reviewersgijs, dsicore
bugs405025
milestone1.9b4pre
Bug 405025 ASSERT_VALID_LOCK failed r=gijs a=dsicore
js/jsd/jsd_lock.c
--- a/js/jsd/jsd_lock.c
+++ b/js/jsd/jsd_lock.c
@@ -156,19 +156,18 @@ jsd_Unlock(JSDStaticLock* lock)
 {
     void* me;
     ASSERT_VALID_LOCK(lock);
     _CURRENT_THREAD(me);
 
     /* it's an error to unlock a lock you don't own */
     JS_ASSERT(lock->owner == me);
     if(lock->owner != me)
-    {
         return;
-    }
+
     if(--lock->count == 0)
     {
         lock->owner = NULL;
         PR_Unlock(lock->lock);
     }
 }    
 
 #ifdef DEBUG