Versioning.
[WebKit-https.git] / JavaScriptGlue / JSBase.cpp
index 6423bd3..7d44abc 100644 (file)
@@ -45,7 +45,10 @@ JSBase* JSBase::Retain()
 void JSBase::Release()
 {
     if (--fRetainCount == 0)
+    {
+        JSLock lock(LockForReal);
         delete this;
+    }
 }
 
 CFIndex JSBase::RetainCount() const