{"action":"opened","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3140","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3140/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3140/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3140/events","html_url":"https://github.com/cocos2d/cocos2d-html5/issues/3140","id":110290445,"number":3140,"title":"Memory management into cocostudio extension","user":{"login":"IShm","id":4047912,"avatar_url":"https://avatars.githubusercontent.com/u/4047912?v=3","gravatar_id":"","url":"https://api.github.com/users/IShm","html_url":"https://github.com/IShm","followers_url":"https://api.github.com/users/IShm/followers","following_url":"https://api.github.com/users/IShm/following{/other_user}","gists_url":"https://api.github.com/users/IShm/gists{/gist_id}","starred_url":"https://api.github.com/users/IShm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IShm/subscriptions","organizations_url":"https://api.github.com/users/IShm/orgs","repos_url":"https://api.github.com/users/IShm/repos","events_url":"https://api.github.com/users/IShm/events{/privacy}","received_events_url":"https://api.github.com/users/IShm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-07T18:42:43Z","updated_at":"2015-10-07T18:42:43Z","closed_at":null,"body":"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.\r\n\r\nSo it happens automatically, based on _JSON_ file - it leads to <b>memory leaks</b>, the one way to avoid it - clear <b>all</b> caches, but in mostly cases it's unacceptable.\r\n\r\nWould 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.\r\n\r\nWhat do you think?"}}