{"action":"created","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/437","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/437/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/437/events","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/437","id":98178411,"number":437,"title":"Odd line in image/internal.m","user":{"login":"cmsj","id":353427,"avatar_url":"https://avatars.githubusercontent.com/u/353427?v=3","gravatar_id":"","url":"https://api.github.com/users/cmsj","html_url":"https://github.com/cmsj","followers_url":"https://api.github.com/users/cmsj/followers","following_url":"https://api.github.com/users/cmsj/following{/other_user}","gists_url":"https://api.github.com/users/cmsj/gists{/gist_id}","starred_url":"https://api.github.com/users/cmsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmsj/subscriptions","organizations_url":"https://api.github.com/users/cmsj/orgs","repos_url":"https://api.github.com/users/cmsj/repos","events_url":"https://api.github.com/users/cmsj/events{/privacy}","received_events_url":"https://api.github.com/users/cmsj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-30T14:06:29Z","updated_at":"2015-07-30T16:02:05Z","closed_at":null,"body":"I'm trying to track down the strange console traceback issue that's popped up recently on IRC, and I noticed the following line in extensions/image/internal.m:\r\n\r\n305     luaL_unref(L, LUA_REGISTRYINDEX, 1);\r\n\r\n@asmagill - am I missing some subtle magic here? That seems like it's just going to randomly unreference whatever the first thing we put into REGISTRYINDEX was?"},"comment":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/comments/126382195","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/437#issuecomment-126382195","issue_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/437","id":126382195,"user":{"login":"asmagill","id":8139480,"avatar_url":"https://avatars.githubusercontent.com/u/8139480?v=3","gravatar_id":"","url":"https://api.github.com/users/asmagill","html_url":"https://github.com/asmagill","followers_url":"https://api.github.com/users/asmagill/followers","following_url":"https://api.github.com/users/asmagill/following{/other_user}","gists_url":"https://api.github.com/users/asmagill/gists{/gist_id}","starred_url":"https://api.github.com/users/asmagill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmagill/subscriptions","organizations_url":"https://api.github.com/users/asmagill/orgs","repos_url":"https://api.github.com/users/asmagill/repos","events_url":"https://api.github.com/users/asmagill/events{/privacy}","received_events_url":"https://api.github.com/users/asmagill/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T16:02:05Z","updated_at":"2015-07-30T16:02:05Z","body":"Yeah, I noticed this last night and was going to try and figure out WTH I was thinking... I'm 99% sure it's completely unnecessary, rather than a \ntypo, and have removed it to test this out in the last local build I made last night to test this morning.\n\nIf you agree, go ahead and remove it, otherwise I'll include it in a pull with some additions for hs.window later today.\n\n\n> On Jul 30, 2015, at 9:07 AM, Chris Jones <notifications@github.com> wrote:\n> \n> (I note that hs.image has no calls to luaL_ref(), so AFAICS, it shouldn't have any luaL_unref() either.\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/Hammerspoon/hammerspoon/issues/437#issuecomment-126340317>.\n> \n\n"}}