{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-objc/issues/1326","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-objc/issues/1326/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-objc/issues/1326/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-objc/issues/1326/events","html_url":"https://github.com/cocos2d/cocos2d-objc/pull/1326","id":90093642,"number":1326,"title":"Added new property colorRGBAAsGLkVector4 to CCNode","user":{"login":"pkclsoft","id":729197,"avatar_url":"https://avatars.githubusercontent.com/u/729197?v=3","gravatar_id":"","url":"https://api.github.com/users/pkclsoft","html_url":"https://github.com/pkclsoft","followers_url":"https://api.github.com/users/pkclsoft/followers","following_url":"https://api.github.com/users/pkclsoft/following{/other_user}","gists_url":"https://api.github.com/users/pkclsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/pkclsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkclsoft/subscriptions","organizations_url":"https://api.github.com/users/pkclsoft/orgs","repos_url":"https://api.github.com/users/pkclsoft/repos","events_url":"https://api.github.com/users/pkclsoft/events{/privacy}","received_events_url":"https://api.github.com/users/pkclsoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-22T13:08:29Z","updated_at":"2015-06-22T13:29:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cocos2d/cocos2d-objc/pulls/1326","html_url":"https://github.com/cocos2d/cocos2d-objc/pull/1326","diff_url":"https://github.com/cocos2d/cocos2d-objc/pull/1326.diff","patch_url":"https://github.com/cocos2d/cocos2d-objc/pull/1326.patch"},"body":"\r\nWhilst chasing a memory leak in CCColor, I found that there is a ridiculous number of CCColor objects being created that simply aren't needed.  They are only created to serve the purpose of creating a GLKVector4 structure.\r\n\r\nBy adding the code in this commit, all of those allocations and garbage collections are no longer needed."},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-objc/issues/comments/114101975","html_url":"https://github.com/cocos2d/cocos2d-objc/pull/1326#issuecomment-114101975","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-objc/issues/1326","id":114101975,"user":{"login":"pkclsoft","id":729197,"avatar_url":"https://avatars.githubusercontent.com/u/729197?v=3","gravatar_id":"","url":"https://api.github.com/users/pkclsoft","html_url":"https://github.com/pkclsoft","followers_url":"https://api.github.com/users/pkclsoft/followers","following_url":"https://api.github.com/users/pkclsoft/following{/other_user}","gists_url":"https://api.github.com/users/pkclsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/pkclsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkclsoft/subscriptions","organizations_url":"https://api.github.com/users/pkclsoft/orgs","repos_url":"https://api.github.com/users/pkclsoft/repos","events_url":"https://api.github.com/users/pkclsoft/events{/privacy}","received_events_url":"https://api.github.com/users/pkclsoft/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T13:29:59Z","updated_at":"2015-06-22T13:29:59Z","body":"The second commit adds some code to the CCColor class that tries to ensure that if a CCColor object is modified after creation, the captured CGColor field (if it exists) is released so that a new one can be created the next time it's requested."}}