Fix for leak introduced by inline ScopeChainNode use
[WebKit-https.git] / JavaScriptCore / kjs / ExecStateInlines.h
index 2c15ba2..05be001 100644 (file)
@@ -83,6 +83,11 @@ namespace KJS  {
         
         if (m_activation->needsPop())
             m_globalObject->popActivation();
+        
+        if (m_inlineScopeChainNode.next) {
+            m_scopeChain.popInlineScopeNode();
+            m_inlineScopeChainNode.next = 0;
+        }
     }
 
 } // namespace KJS