Hi, in using storyboard for a game. Looking at exitScene when this is called. I’m removing all listeners that I have going, one being attached to a ball. Then remove all is called, but print (ball) still shows memory in use (i think - very new to this) table: 0x1076a72c0
Do I have to nil all local variables to free memory up? I’m just conscious that memory leaks can be an issue so am trying to get my head around this before the code becomes too long and harder to work through…
function scene:exitScene( event )
local group = self.view
gameListeners(“remove”)
storyboard.removeAll ( )
print (ball)
end
Thanks,
Mark