I have created a no of sprites and added them to the scene with the same reference and now, how can i remove them

Continuing the discussion from Memory deallocation in Cocos2d-x:

I have created a no of sprites and added them to the scene with the same reference and now, how can i remove them
http://discuss.cocos2d-x.org/t/i-have-created-a-no-of-sprites-and-added-them-to-the-scene-with-the-same-reference-and-now-how-can-i-remove-them/30244

hideho

I might be misunderstanding your question but

what about using a prefab, and instantiate/destroy the objects by storing them in an array or data structure of your liking?

cheers

Yes, of course it is possible. But i am not interested in a new method. I would like to know the solution or the cause for the current problem and how to overcome it.