title: lua : will memory still using if the image create as local?
body: <pre><code>local function myInit()
      local topBackGround = display.newImageRect("backGround.png", 500, 500)
      topBackGround.x = 0
      topBackGround.y = 0
  end
  </code></pre>
  
  <p>as i know local variable will not using memory after we jump out the function, as this case the image still exits, will it using memory ?</p>
  
  <p>if no, what if i insert it to a global displayGroup ?</p>