{"action":"opened","issue":{"url":"https://api.github.com/repos/MegamixEngine/MegamixEngine/issues/238","repository_url":"https://api.github.com/repos/MegamixEngine/MegamixEngine","labels_url":"https://api.github.com/repos/MegamixEngine/MegamixEngine/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/MegamixEngine/MegamixEngine/issues/238/comments","events_url":"https://api.github.com/repos/MegamixEngine/MegamixEngine/issues/238/events","html_url":"https://github.com/MegamixEngine/MegamixEngine/issues/238","id":349769300,"node_id":"MDU6SXNzdWUzNDk3NjkzMDA=","number":238,"title":"Potential memory leak with Air Man","user":{"login":"RonanDuffy-InkTech","id":35691333,"node_id":"MDQ6VXNlcjM1NjkxMzMz","avatar_url":"https://avatars3.githubusercontent.com/u/35691333?v=4","gravatar_id":"","url":"https://api.github.com/users/RonanDuffy-InkTech","html_url":"https://github.com/RonanDuffy-InkTech","followers_url":"https://api.github.com/users/RonanDuffy-InkTech/followers","following_url":"https://api.github.com/users/RonanDuffy-InkTech/following{/other_user}","gists_url":"https://api.github.com/users/RonanDuffy-InkTech/gists{/gist_id}","starred_url":"https://api.github.com/users/RonanDuffy-InkTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonanDuffy-InkTech/subscriptions","organizations_url":"https://api.github.com/users/RonanDuffy-InkTech/orgs","repos_url":"https://api.github.com/users/RonanDuffy-InkTech/repos","events_url":"https://api.github.com/users/RonanDuffy-InkTech/events{/privacy}","received_events_url":"https://api.github.com/users/RonanDuffy-InkTech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-11T22:47:12Z","updated_at":"2018-08-11T22:47:12Z","closed_at":null,"author_association":"NONE","body":"In Air Man's code, data structures are used; specifically **DS grids**.\r\n\r\nFour are created in the *create* event:\r\n![AirMan_CreateEvent](https://user-images.githubusercontent.com/35691333/43996675-c36c1fd2-9dbf-11e8-8e8f-04375d9d5338.png)\r\n\r\nBut in both the *destroy* event and the *room end* event, only three of them get destroyed:\r\n![AirMan_DataStructureDestroy](https://user-images.githubusercontent.com/35691333/43996712-842656a2-9dc0-11e8-8200-6d520a3173f0.png)\r\n\r\nSince data structures need to be destroyed when not in use, so as to free up the memory used, using Air Man can lead to memory leaks.\r\n"}}
{"actor":{"display_login":"RonanDuffy-InkTech"}}