{"action":"opened","issue":{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/244","repository_url":"https://api.github.com/repos/firebase/FirebaseUI-Android","labels_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/244/comments","events_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/244/events","html_url":"https://github.com/firebase/FirebaseUI-Android/issues/244","id":170175525,"number":244,"title":"Activity leak when using FirebaseRecyclerAdapter","user":{"login":"talosdev","id":15818524,"avatar_url":"https://avatars.githubusercontent.com/u/15818524?v=3","gravatar_id":"","url":"https://api.github.com/users/talosdev","html_url":"https://github.com/talosdev","followers_url":"https://api.github.com/users/talosdev/followers","following_url":"https://api.github.com/users/talosdev/following{/other_user}","gists_url":"https://api.github.com/users/talosdev/gists{/gist_id}","starred_url":"https://api.github.com/users/talosdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talosdev/subscriptions","organizations_url":"https://api.github.com/users/talosdev/orgs","repos_url":"https://api.github.com/users/talosdev/repos","events_url":"https://api.github.com/users/talosdev/events{/privacy}","received_events_url":"https://api.github.com/users/talosdev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-09T14:07:37Z","updated_at":"2016-08-09T14:07:37Z","closed_at":null,"body":"I am noticing an activity leak with LeakCanary when using a FirebaseRecyclerAdapter.\r\n\r\nHere's the trace from LeakCanary:\r\n\r\n![leak](https://cloud.githubusercontent.com/assets/15818524/17519134/eb034bf8-5e4a-11e6-94af-066901cea5e5.png)\r\n\r\nMy adapter does not hold a reference to a contract.\r\n\r\nThe leak seems to go away if I explicitly remove the adapter from the recycled `onDestroy`.\r\n\r\n    @Override\r\n    public void onDestroy() {\r\n        super.onDestroy();\r\n        recycler.setAdapter(null);\r\n    }\r\n\r\nAny ideas if this is normal behaviour?\r\n\r\n  * Google Play Services version: 9.4.0\r\n  * Firebase/Play Services SDK version: 9.4.0\r\n  * FirebaseUI version: 0.4.4\r\n  \r\n"}}
{"actor":{"display_login":"talosdev"}}