{"action":"created","issue":{"url":"https://api.github.com/repos/CreateJS/SoundJS/issues/206","labels_url":"https://api.github.com/repos/CreateJS/SoundJS/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/CreateJS/SoundJS/issues/206/comments","events_url":"https://api.github.com/repos/CreateJS/SoundJS/issues/206/events","html_url":"https://github.com/CreateJS/SoundJS/issues/206","id":107286715,"number":206,"title":"Cordova Audio Plugin Bug","user":{"login":"AdrianNostromo","id":10205332,"avatar_url":"https://avatars.githubusercontent.com/u/10205332?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrianNostromo","html_url":"https://github.com/AdrianNostromo","followers_url":"https://api.github.com/users/AdrianNostromo/followers","following_url":"https://api.github.com/users/AdrianNostromo/following{/other_user}","gists_url":"https://api.github.com/users/AdrianNostromo/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrianNostromo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrianNostromo/subscriptions","organizations_url":"https://api.github.com/users/AdrianNostromo/orgs","repos_url":"https://api.github.com/users/AdrianNostromo/repos","events_url":"https://api.github.com/users/AdrianNostromo/events{/privacy}","received_events_url":"https://api.github.com/users/AdrianNostromo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CreateJS/SoundJS/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/CreateJS/SoundJS/labels/Cordova","name":"Cordova","color":"5319e7"},{"url":"https://api.github.com/repos/CreateJS/SoundJS/labels/NextRelease","name":"NextRelease","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T22:07:18Z","updated_at":"2015-11-19T06:18:57Z","closed_at":null,"body":"The function `p.destroy = function() {`\r\n\r\nOriginal:\r\n\r\n```js\r\nthis.AbstractSoundInstance_destroy();\r\nthis._playbackResource.release();\r\n```\r\n\r\nShould be:\r\n\r\n```\r\nthis._playbackResource.release();\r\nthis.AbstractSoundInstance_destroy();\r\n```\r\n\r\nReason:\r\nThe function `AbstractSoundInstance_destroy` makes the variable `this._playbackResource` null, and we get a can't access function `release` from null object error.\r\nThis doesn't free up the sound so eventually (after 27 sounds started on android and cordova) no more sounds will be played."},"comment":{"url":"https://api.github.com/repos/CreateJS/SoundJS/issues/comments/157962326","html_url":"https://github.com/CreateJS/SoundJS/issues/206#issuecomment-157962326","issue_url":"https://api.github.com/repos/CreateJS/SoundJS/issues/206","id":157962326,"user":{"login":"marfire","id":5117434,"avatar_url":"https://avatars.githubusercontent.com/u/5117434?v=3","gravatar_id":"","url":"https://api.github.com/users/marfire","html_url":"https://github.com/marfire","followers_url":"https://api.github.com/users/marfire/followers","following_url":"https://api.github.com/users/marfire/following{/other_user}","gists_url":"https://api.github.com/users/marfire/gists{/gist_id}","starred_url":"https://api.github.com/users/marfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marfire/subscriptions","organizations_url":"https://api.github.com/users/marfire/orgs","repos_url":"https://api.github.com/users/marfire/repos","events_url":"https://api.github.com/users/marfire/events{/privacy}","received_events_url":"https://api.github.com/users/marfire/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T06:18:57Z","updated_at":"2015-11-19T06:18:57Z","body":"I can confirm that this is a bug."}}