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.

 if levelText ~= nil then  
 levelText:removeSelf()  
 levelText = nil  
 end  
 if levelTextTween ~= nil then  
 transition.cancel(levelTextTween)  
 levelTextTween = nil  
 end  

I was looking at it and since I’m removing the text first before the tween (even though the tween should be over) could this case a leak? Does the finished tween still have a pointer to the object being tweened?

I’m thinking this would be more secure…

 if levelTextTween ~= nil then  
 transition.cancel(levelTextTween)  
 levelTextTween = nil  
 end  
 if levelText ~= nil then  
 levelText:removeSelf()  
 levelText = nil  
 end  

Thoughts?
Rob [import]uid: 19626 topic_id: 9699 reply_id: 309699[/import]