Necessity in memory management into cocostudio extension

Hi Everyone,

cocostudio extension has function ccs.load() that analize and create appropriate node and action. Creating of this object cause to create many sprites, spritesheets, actions, armatures etc. That in turn leads to caching it in caches, like spriteFrameCache, animationCache etc.

So it happens automatically, based on JSON file - it leads to memory leaks, the one way to avoid it - clear all caches, but in mostly cases it’s unacceptable.

Would be good if cocostudio extention had memory management system that count references for created objects and function to unload (clear corresponding caches) by JSON file.

What do you think?
Let’s discuss it.

Thanks.