{"action":"closed","issue":{"url":"https://api.github.com/repos/java-native-access/jna/issues/697","repository_url":"https://api.github.com/repos/java-native-access/jna","labels_url":"https://api.github.com/repos/java-native-access/jna/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/java-native-access/jna/issues/697/comments","events_url":"https://api.github.com/repos/java-native-access/jna/issues/697/events","html_url":"https://github.com/java-native-access/jna/issues/697","id":173949063,"number":697,"title":"Memory.dispose() does not remove \"this\" from the allocatedMemory map","user":{"login":"AgnetaWalterscheidt","id":16926849,"avatar_url":"https://avatars.githubusercontent.com/u/16926849?v=3","gravatar_id":"","url":"https://api.github.com/users/AgnetaWalterscheidt","html_url":"https://github.com/AgnetaWalterscheidt","followers_url":"https://api.github.com/users/AgnetaWalterscheidt/followers","following_url":"https://api.github.com/users/AgnetaWalterscheidt/following{/other_user}","gists_url":"https://api.github.com/users/AgnetaWalterscheidt/gists{/gist_id}","starred_url":"https://api.github.com/users/AgnetaWalterscheidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgnetaWalterscheidt/subscriptions","organizations_url":"https://api.github.com/users/AgnetaWalterscheidt/orgs","repos_url":"https://api.github.com/users/AgnetaWalterscheidt/repos","events_url":"https://api.github.com/users/AgnetaWalterscheidt/events{/privacy}","received_events_url":"https://api.github.com/users/AgnetaWalterscheidt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-30T07:33:05Z","updated_at":"2016-10-12T18:47:29Z","closed_at":"2016-10-12T18:47:29Z","body":"Method Memory.dispose() frees the peer and sets it to 0. Afterwards it calls allocatedMemory.remove(this). This call does not find the Memory in the map: Memory is a subclass of Pointer which uses the peer for hashcode() and equals() and therefore \"this\" is no longer equal to the Memory that was put in the map.\r\nThis bug is easy to fix by first calling allocatedMemory.remove(this) and then setting the peer to 0."}}
{"actor":{"display_login":"matthiasblaesing"}}