{"action":"opened","number":90,"pull_request":{"url":"https://api.github.com/repos/apache/cordova-plugin-camera/pulls/90","id":34181236,"html_url":"https://github.com/apache/cordova-plugin-camera/pull/90","diff_url":"https://github.com/apache/cordova-plugin-camera/pull/90.diff","patch_url":"https://github.com/apache/cordova-plugin-camera/pull/90.patch","issue_url":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/90","number":90,"state":"open","locked":false,"title":"CB-8253 Fix potential unreleased resources","user":{"login":"akinzie","id":10420466,"avatar_url":"https://avatars.githubusercontent.com/u/10420466?v=3","gravatar_id":"","url":"https://api.github.com/users/akinzie","html_url":"https://github.com/akinzie","followers_url":"https://api.github.com/users/akinzie/followers","following_url":"https://api.github.com/users/akinzie/following{/other_user}","gists_url":"https://api.github.com/users/akinzie/gists{/gist_id}","starred_url":"https://api.github.com/users/akinzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akinzie/subscriptions","organizations_url":"https://api.github.com/users/akinzie/orgs","repos_url":"https://api.github.com/users/akinzie/repos","events_url":"https://api.github.com/users/akinzie/events{/privacy}","received_events_url":"https://api.github.com/users/akinzie/received_events","type":"User","site_admin":false},"body":"There was a place (~line 701) in CameraLauncher.java where there was the\r\npotential for input and output streams to never be closed if an exception\r\noccurs at the wrong time.   There were some other places where an\r\nInputStream was used anonymously, and so would never be closed.\r\n\r\nThis change introduces try/finally blocks to ensure that the streams will\r\nalways end up closed.\r\n\r\nThis is the same as the pull request https://github.com/apache/cordova-plugin-camera/pull/67 except that my change is applied to the updated repo.\r\n\r\nChange-Id: I479bceddcd631bfec45c3f5ee7e88ddb04c59073","created_at":"2015-04-27T15:39:58Z","updated_at":"2015-04-27T15:39:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/cordova-plugin-camera/pulls/90/commits","review_comments_url":"https://api.github.com/repos/apache/cordova-plugin-camera/pulls/90/comments","review_comment_url":"https://api.github.com/repos/apache/cordova-plugin-camera/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/90/comments","statuses_url":"https://api.github.com/repos/apache/cordova-plugin-camera/statuses/ec6d29de50e1e8550ddbef66f4214a2720de9cc2","head":{"label":"akinzie:master","ref":"master","sha":"ec6d29de50e1e8550ddbef66f4214a2720de9cc2","user":{"login":"akinzie","id":10420466,"avatar_url":"https://avatars.githubusercontent.com/u/10420466?v=3","gravatar_id":"","url":"https://api.github.com/users/akinzie","html_url":"https://github.com/akinzie","followers_url":"https://api.github.com/users/akinzie/followers","following_url":"https://api.github.com/users/akinzie/following{/other_user}","gists_url":"https://api.github.com/users/akinzie/gists{/gist_id}","starred_url":"https://api.github.com/users/akinzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akinzie/subscriptions","organizations_url":"https://api.github.com/users/akinzie/orgs","repos_url":"https://api.github.com/users/akinzie/repos","events_url":"https://api.github.com/users/akinzie/events{/privacy}","received_events_url":"https://api.github.com/users/akinzie/received_events","type":"User","site_admin":false},"repo":{"id":31276576,"name":"cordova-plugin-camera","full_name":"akinzie/cordova-plugin-camera","owner":{"login":"akinzie","id":10420466,"avatar_url":"https://avatars.githubusercontent.com/u/10420466?v=3","gravatar_id":"","url":"https://api.github.com/users/akinzie","html_url":"https://github.com/akinzie","followers_url":"https://api.github.com/users/akinzie/followers","following_url":"https://api.github.com/users/akinzie/following{/other_user}","gists_url":"https://api.github.com/users/akinzie/gists{/gist_id}","starred_url":"https://api.github.com/users/akinzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akinzie/subscriptions","organizations_url":"https://api.github.com/users/akinzie/orgs","repos_url":"https://api.github.com/users/akinzie/repos","events_url":"https://api.github.com/users/akinzie/events{/privacy}","received_events_url":"https://api.github.com/users/akinzie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akinzie/cordova-plugin-camera","description":"Mirror of Apache Cordova Plugin camera","fork":true,"url":"https://api.github.com/repos/akinzie/cordova-plugin-camera","forks_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/forks","keys_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/teams","hooks_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/hooks","issue_events_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/issues/events{/number}","events_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/events","assignees_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/assignees{/user}","branches_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/branches{/branch}","tags_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/tags","blobs_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/git/refs{/sha}","trees_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/statuses/{sha}","languages_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/languages","stargazers_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/stargazers","contributors_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/contributors","subscribers_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/subscribers","subscription_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/subscription","commits_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/commits{/sha}","git_commits_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/git/commits{/sha}","comments_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/comments{/number}","issue_comment_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/issues/comments{/number}","contents_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/contents/{+path}","compare_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/merges","archive_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/downloads","issues_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/issues{/number}","pulls_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/pulls{/number}","milestones_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/milestones{/number}","notifications_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/labels{/name}","releases_url":"https://api.github.com/repos/akinzie/cordova-plugin-camera/releases{/id}","created_at":"2015-02-24T19:04:17Z","updated_at":"2015-04-27T15:29:53Z","pushed_at":"2015-04-27T15:29:53Z","git_url":"git://github.com/akinzie/cordova-plugin-camera.git","ssh_url":"git@github.com:akinzie/cordova-plugin-camera.git","clone_url":"https://github.com/akinzie/cordova-plugin-camera.git","svn_url":"https://github.com/akinzie/cordova-plugin-camera","homepage":null,"size":591,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"c2e0db2b869762fd09b3977c5cc0af5a8ee4e79b","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":10860591,"name":"cordova-plugin-camera","full_name":"apache/cordova-plugin-camera","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/cordova-plugin-camera","description":"Mirror of Apache Cordova Plugin camera","fork":false,"url":"https://api.github.com/repos/apache/cordova-plugin-camera","forks_url":"https://api.github.com/repos/apache/cordova-plugin-camera/forks","keys_url":"https://api.github.com/repos/apache/cordova-plugin-camera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/cordova-plugin-camera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/cordova-plugin-camera/teams","hooks_url":"https://api.github.com/repos/apache/cordova-plugin-camera/hooks","issue_events_url":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/events{/number}","events_url":"https://api.github.com/repos/apache/cordova-plugin-camera/events","assignees_url":"https://api.github.com/repos/apache/cordova-plugin-camera/assignees{/user}","branches_url":"https://api.github.com/repos/apache/cordova-plugin-camera/branches{/branch}","tags_url":"https://api.github.com/repos/apache/cordova-plugin-camera/tags","blobs_url":"https://api.github.com/repos/apache/cordova-plugin-camera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/cordova-plugin-camera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/cordova-plugin-camera/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/cordova-plugin-camera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/cordova-plugin-camera/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/cordova-plugin-camera/languages","stargazers_url":"https://api.github.com/repos/apache/cordova-plugin-camera/stargazers","contributors_url":"https://api.github.com/repos/apache/cordova-plugin-camera/contributors","subscribers_url":"https://api.github.com/repos/apache/cordova-plugin-camera/subscribers","subscription_url":"https://api.github.com/repos/apache/cordova-plugin-camera/subscription","commits_url":"https://api.github.com/repos/apache/cordova-plugin-camera/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/cordova-plugin-camera/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/cordova-plugin-camera/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/cordova-plugin-camera/contents/{+path}","compare_url":"https://api.github.com/repos/apache/cordova-plugin-camera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/cordova-plugin-camera/merges","archive_url":"https://api.github.com/repos/apache/cordova-plugin-camera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/cordova-plugin-camera/downloads","issues_url":"https://api.github.com/repos/apache/cordova-plugin-camera/issues{/number}","pulls_url":"https://api.github.com/repos/apache/cordova-plugin-camera/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/cordova-plugin-camera/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/cordova-plugin-camera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/cordova-plugin-camera/labels{/name}","releases_url":"https://api.github.com/repos/apache/cordova-plugin-camera/releases{/id}","created_at":"2013-06-22T07:00:13Z","updated_at":"2015-04-27T07:40:36Z","pushed_at":"2015-04-24T21:25:01Z","git_url":"git://github.com/apache/cordova-plugin-camera.git","ssh_url":"git@github.com:apache/cordova-plugin-camera.git","clone_url":"https://github.com/apache/cordova-plugin-camera.git","svn_url":"https://github.com/apache/cordova-plugin-camera","homepage":null,"size":2435,"stargazers_count":135,"watchers_count":135,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":233,"mirror_url":"git://git.apache.org/cordova-plugin-camera.git","open_issues_count":23,"forks":233,"open_issues":23,"watchers":135,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/cordova-plugin-camera/pulls/90"},"html":{"href":"https://github.com/apache/cordova-plugin-camera/pull/90"},"issue":{"href":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/90"},"comments":{"href":"https://api.github.com/repos/apache/cordova-plugin-camera/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/cordova-plugin-camera/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/cordova-plugin-camera/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/cordova-plugin-camera/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/apache/cordova-plugin-camera/statuses/ec6d29de50e1e8550ddbef66f4214a2720de9cc2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":68,"deletions":12,"changed_files":1}}