{"action":"created","issue":{"url":"https://api.github.com/repos/square/picasso/issues/1045","labels_url":"https://api.github.com/repos/square/picasso/issues/1045/labels{/name}","comments_url":"https://api.github.com/repos/square/picasso/issues/1045/comments","events_url":"https://api.github.com/repos/square/picasso/issues/1045/events","html_url":"https://github.com/square/picasso/issues/1045","id":83104184,"number":1045,"title":"do i need to do some release work when the activity is destroyed?","user":{"login":"macarthor","id":1481269,"avatar_url":"https://avatars.githubusercontent.com/u/1481269?v=3","gravatar_id":"","url":"https://api.github.com/users/macarthor","html_url":"https://github.com/macarthor","followers_url":"https://api.github.com/users/macarthor/followers","following_url":"https://api.github.com/users/macarthor/following{/other_user}","gists_url":"https://api.github.com/users/macarthor/gists{/gist_id}","starred_url":"https://api.github.com/users/macarthor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macarthor/subscriptions","organizations_url":"https://api.github.com/users/macarthor/orgs","repos_url":"https://api.github.com/users/macarthor/repos","events_url":"https://api.github.com/users/macarthor/events{/privacy}","received_events_url":"https://api.github.com/users/macarthor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-31T14:45:23Z","updated_at":"2015-05-31T16:13:36Z","closed_at":null,"body":"hi all,\r\n\r\ni'd like to state my hierarchy: a blank activty, a ViewPager fragment, some (5 - 30) ImageView nested fragments.\r\n\r\nin every nested fragment onCreateView, i call \"Picasso.with(getActivity()).load(\"network.image.url\").into(imageView);\"\r\n\r\nwhen i press back to close the activity, leakcanary reports there's memory leak. so i use dump and MAT to analysis the leak:\r\n\r\nClass Name                                                                            | Shallow Heap | Retained Heap\r\n---------------------------------------------------------------------------------------------------------------------\r\ncom.squareup.picasso.LruCache @ 0x64e7e6a0                                            |           40 |    8,516,744\r\n|- cache com.squareup.picasso.Picasso @ 0x64e88be0                                    |           64 |           528\r\n|  '- singleton class com.squareup.picasso.Picasso @ 0x64e755c8 Unknown               |           16 |           584\r\n|- cache com.squareup.picasso.Dispatcher @ 0x64e85de8                                 |           72 |           712\r\n|  '- dispatcher com.squareup.picasso.Dispatcher$NetworkBroadcastReceiver @ 0x64e88478|           24 |            24\r\n'- Total: 2 entries                                                                   |              |              \r\n---------------------------------------------------------------------------------------------------------------------\r\n\r\nany idea to fix this?"},"comment":{"url":"https://api.github.com/repos/square/picasso/issues/comments/107213816","html_url":"https://github.com/square/picasso/issues/1045#issuecomment-107213816","issue_url":"https://api.github.com/repos/square/picasso/issues/1045","id":107213816,"user":{"login":"dnkoutso","id":310370,"avatar_url":"https://avatars.githubusercontent.com/u/310370?v=3","gravatar_id":"","url":"https://api.github.com/users/dnkoutso","html_url":"https://github.com/dnkoutso","followers_url":"https://api.github.com/users/dnkoutso/followers","following_url":"https://api.github.com/users/dnkoutso/following{/other_user}","gists_url":"https://api.github.com/users/dnkoutso/gists{/gist_id}","starred_url":"https://api.github.com/users/dnkoutso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnkoutso/subscriptions","organizations_url":"https://api.github.com/users/dnkoutso/orgs","repos_url":"https://api.github.com/users/dnkoutso/repos","events_url":"https://api.github.com/users/dnkoutso/events{/privacy}","received_events_url":"https://api.github.com/users/dnkoutso/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T16:13:36Z","updated_at":"2015-05-31T16:13:36Z","body":"When you create a picasso instance we are explicitly invoking `context.getApplicationContext()` exactly for the reason to avoid holding on to an activity context.\r\n\r\nSomething else is going wrong here."}}