{"action":"closed","issue":{"url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/3916","repository_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium","labels_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/3916/labels{/name}","comments_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/3916/comments","events_url":"https://api.github.com/repos/AnalyticalGraphicsInc/cesium/issues/3916/events","html_url":"https://github.com/AnalyticalGraphicsInc/cesium/issues/3916","id":154590852,"number":3916,"title":"Visualizers not releasing removed Entity","user":{"login":"ramosta","id":19335069,"avatar_url":"https://avatars.githubusercontent.com/u/19335069?v=3","gravatar_id":"","url":"https://api.github.com/users/ramosta","html_url":"https://github.com/ramosta","followers_url":"https://api.github.com/users/ramosta/followers","following_url":"https://api.github.com/users/ramosta/following{/other_user}","gists_url":"https://api.github.com/users/ramosta/gists{/gist_id}","starred_url":"https://api.github.com/users/ramosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramosta/subscriptions","organizations_url":"https://api.github.com/users/ramosta/orgs","repos_url":"https://api.github.com/users/ramosta/repos","events_url":"https://api.github.com/users/ramosta/events{/privacy}","received_events_url":"https://api.github.com/users/ramosta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-12T21:57:03Z","updated_at":"2016-05-13T13:40:59Z","closed_at":"2016-05-13T13:40:59Z","body":"reported on forum:\r\nhttps://groups.google.com/forum/#!topic/cesium-dev/wWLO8PmYlFk\r\nhttps://groups.google.com/forum/#!topic/cesium-dev/Cm2cWe3Z4ew\r\n\r\nVisualizers (PointVisualizer, BillboardVisualizer, possibly others) don't release the reference to an entity that was requested to be removed.\r\n\r\nIn BillboardVisualizer, for example, the billboard primitive's \"id\" is set to its corresponding entity in the update function.When that entity is removed, _onCollectionChanged calls returnBillboard. The billboard primitive is kept for reuse with show set to false and image to undefined, but the id remains set to the entity, so the entity can't be garbage collected until the billboard primitive is actually reused.\r\n"}}