{"action":"created","issue":{"url":"https://api.github.com/repos/supercollider/supercollider/issues/1992","repository_url":"https://api.github.com/repos/supercollider/supercollider","labels_url":"https://api.github.com/repos/supercollider/supercollider/issues/1992/labels{/name}","comments_url":"https://api.github.com/repos/supercollider/supercollider/issues/1992/comments","events_url":"https://api.github.com/repos/supercollider/supercollider/issues/1992/events","html_url":"https://github.com/supercollider/supercollider/pull/1992","id":150617595,"number":1992,"title":"Classlib: Don't try to free a buffer after it was already freed","user":{"login":"jamshark70","id":318301,"avatar_url":"https://avatars.githubusercontent.com/u/318301?v=3","gravatar_id":"","url":"https://api.github.com/users/jamshark70","html_url":"https://github.com/jamshark70","followers_url":"https://api.github.com/users/jamshark70/followers","following_url":"https://api.github.com/users/jamshark70/following{/other_user}","gists_url":"https://api.github.com/users/jamshark70/gists{/gist_id}","starred_url":"https://api.github.com/users/jamshark70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamshark70/subscriptions","organizations_url":"https://api.github.com/users/jamshark70/orgs","repos_url":"https://api.github.com/users/jamshark70/repos","events_url":"https://api.github.com/users/jamshark70/events{/privacy}","received_events_url":"https://api.github.com/users/jamshark70/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-24T02:35:02Z","updated_at":"2016-04-24T04:20:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/supercollider/supercollider/pulls/1992","html_url":"https://github.com/supercollider/supercollider/pull/1992","diff_url":"https://github.com/supercollider/supercollider/pull/1992.diff","patch_url":"https://github.com/supercollider/supercollider/pull/1992.patch"},"body":"```\r\nb = Buffer.alloc(s, 100, 1);\r\nc = Buffer.alloc(s, 100, 1);\r\nc.free;\r\nc.free;\r\n```\r\n\r\nThe second `c.free` issues a [/b_free, nil] to the server, which it interprets as [/b_free, 0] -- killing `b`!!!\r\n\r\nThis checks for the bufnum being nil before sending any b_free messages.\r\n\r\nAs a side note, I've just been bitten by this bug in probably the last 3 consecutive days of coding. It was really extremely annoying. I have other editorial comments about that, but I'll keep them to myself as they are not exactly family friendly."},"comment":{"url":"https://api.github.com/repos/supercollider/supercollider/issues/comments/213882116","html_url":"https://github.com/supercollider/supercollider/pull/1992#issuecomment-213882116","issue_url":"https://api.github.com/repos/supercollider/supercollider/issues/1992","id":213882116,"user":{"login":"jamshark70","id":318301,"avatar_url":"https://avatars.githubusercontent.com/u/318301?v=3","gravatar_id":"","url":"https://api.github.com/users/jamshark70","html_url":"https://github.com/jamshark70","followers_url":"https://api.github.com/users/jamshark70/followers","following_url":"https://api.github.com/users/jamshark70/following{/other_user}","gists_url":"https://api.github.com/users/jamshark70/gists{/gist_id}","starred_url":"https://api.github.com/users/jamshark70/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamshark70/subscriptions","organizations_url":"https://api.github.com/users/jamshark70/orgs","repos_url":"https://api.github.com/users/jamshark70/repos","events_url":"https://api.github.com/users/jamshark70/events{/privacy}","received_events_url":"https://api.github.com/users/jamshark70/received_events","type":"User","site_admin":false},"created_at":"2016-04-24T04:20:42Z","updated_at":"2016-04-24T04:20:42Z","body":"```\r\ns.dumpOSC(1);\r\ns.sendMsg(\\b_free, nil);\r\n-->\r\n[ \"/b_free\", 0 ]\r\n```\r\n\r\nNo. Way."}}