Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Object Clean Up - Gideros Forum

Object Clean Up

andybarillaandybarilla Member
edited March 2012 in General questions
Some of this is specific to Gideros and some might be related to lua in general but I was wondering about cleaning up an object derived from sprite which uses physics after I'm done with it.

My sprite currently has the following objects related to it:
shape, bitmap - local only to the init function
body, fixture - properties of the object

I'm currently destroying the fixture and then the body and removing the sprite from the parent. Is this enough to avoid memory leaks or do I need to do something else to fully dispose of the object.

The game doesn't keep track of the sprites and they are self contained so there are no references to the object outside of itself.


Sign In or Register to comment.