Does using global objects in closures cause memory leaks?
<pre><code>var globalObject = {    
    prop1
    prop2
}
</code></pre>

<p>I have a global object, which i am referring inside my closures. Will this cause any memory leak. </p>

<pre><code>(function(){
      var a;

      function inner1(arg){
        a = arg;
        globalObject .prop1 = dosomething;
      }

      function inner2(){
        globalObject .prop1 = add more properties to prop1
        globalObject .prop2 = dosomething;
        alert(a);
      }

    })();
</code></pre>

<p>After that i am calling my <code>inner2()</code> for a service call.</p>
