How to remove Spine object from memory

I’m removing a Spine object like this:

    display.remove( spine\_object.group )     spine\_object.group = nil

but the texture memory doesn’t go down after it’s removed.  Does anyone know how to properly remove Spine objects from memory?

The solution that worked for me:

-- INSERT THE SPINE OBJECT INTO A LAYER layer\_spine:insert(spine\_object.group)

and remove/nil out that layer before exiting the scene:

display.remove( layer\_spine )     layer\_spine = nil

If you don’t remove the layer before switching to a new scene, the Spine object gets stuck in memory.

The solution that worked for me:

-- INSERT THE SPINE OBJECT INTO A LAYER layer\_spine:insert(spine\_object.group)

and remove/nil out that layer before exiting the scene:

display.remove( layer\_spine )     layer\_spine = nil

If you don’t remove the layer before switching to a new scene, the Spine object gets stuck in memory.

Hi -  Im struggling to use Spine with Corona SDK with a scene change too.  It seems to me the Spineboy example works okay till you try and put it storyboard environment that needs a scene change.  gets Stuck in memory I agree -  No matter what,  the spineboy character stays onscreen during a scene change.  and if you somehow manage to stop it, it wont come back into the next scene.   Can you please extend on your solution here (above) of how you put spine boy into a layer exactly and then remove and bring it back.  I am experiencing the same stuck in memory issues but not sure how to fix it using the Spineboy Examples given.

 

 

 I have tried Runtime:removeEventListener on all day long with no luck.

 

For this example I am using Corona Storyboard here:  

https://github.com/alterant-kr/_GameTemplate-with-storyboard  combined with Spineboy and Corona Runtime here

https://github.com/EsotericSoftware/spine-runtimes/tree/master/spine-corona

Hi -  Im struggling to use Spine with Corona SDK with a scene change too.  It seems to me the Spineboy example works okay till you try and put it storyboard environment that needs a scene change.  gets Stuck in memory I agree -  No matter what,  the spineboy character stays onscreen during a scene change.  and if you somehow manage to stop it, it wont come back into the next scene.   Can you please extend on your solution here (above) of how you put spine boy into a layer exactly and then remove and bring it back.  I am experiencing the same stuck in memory issues but not sure how to fix it using the Spineboy Examples given.

 

 

 I have tried Runtime:removeEventListener on all day long with no luck.

 

For this example I am using Corona Storyboard here:  

https://github.com/alterant-kr/_GameTemplate-with-storyboard  combined with Spineboy and Corona Runtime here

https://github.com/EsotericSoftware/spine-runtimes/tree/master/spine-corona