More help with memory leaks

I'm trying to track down my leaks and I'm curious if this block of code would leak. Prior to executing this, I create a display group called levelText which has two display.newText objects in it. I then to a transition.to on the object to fade it out. This code is in the onComplete call back.

1
2
3
4
5
6
7
8
    if levelText ~= nil then
        levelText:removeSelf()
        levelText = nil
    end
    if levelTextTween ~= nil then
        transition.cancel(levelTextTween)
        levelTextTween = nil
    end
views:1510 update:2011/10/2 9:44:12
corona forums © 2003-2011