{"action":"created","comment":{"url":"https://api.github.com/repos/tonymillion/Reachability/pulls/comments/47804932","id":47804932,"diff_hunk":"@@ -152,6 +156,8 @@ -(instancetype)initWithReachabilityRef:(SCNetworkReachabilityRef)ref\n         self.reachableOnWWAN = YES;\n         self.reachabilityRef = ref;\n \n+        CFRetain(self.reachabilityRef);","path":"Reachability.m","position":24,"original_position":24,"commit_id":"de58c9a3ae27efe1e3763c9e4a0b3fa0ed15ef0e","original_commit_id":"de58c9a3ae27efe1e3763c9e4a0b3fa0ed15ef0e","user":{"login":"jcarroll3","id":1003052,"avatar_url":"https://avatars.githubusercontent.com/u/1003052?v=3","gravatar_id":"","url":"https://api.github.com/users/jcarroll3","html_url":"https://github.com/jcarroll3","followers_url":"https://api.github.com/users/jcarroll3/followers","following_url":"https://api.github.com/users/jcarroll3/following{/other_user}","gists_url":"https://api.github.com/users/jcarroll3/gists{/gist_id}","starred_url":"https://api.github.com/users/jcarroll3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcarroll3/subscriptions","organizations_url":"https://api.github.com/users/jcarroll3/orgs","repos_url":"https://api.github.com/users/jcarroll3/repos","events_url":"https://api.github.com/users/jcarroll3/events{/privacy}","received_events_url":"https://api.github.com/users/jcarroll3/received_events","type":"User","site_admin":false},"body":"Right, so my implementation fixes that. Unless I'm missing something.\r\n\r\nLine 98, `SCNetworkReachabilityRef` is created, retain count 1.\r\nLine 101, init does something with it. Sucess or fail, doesn't matter. As far as we know, the retain count is still 1. So ...\r\nLine 103, we release it. If other objects are claiming ownership its one them","created_at":"2015-12-16T17:16:08Z","updated_at":"2015-12-16T17:16:08Z","html_url":"https://github.com/tonymillion/Reachability/pull/118#discussion_r47804932","pull_request_url":"https://api.github.com/repos/tonymillion/Reachability/pulls/118","_links":{"self":{"href":"https://api.github.com/repos/tonymillion/Reachability/pulls/comments/47804932"},"html":{"href":"https://github.com/tonymillion/Reachability/pull/118#discussion_r47804932"},"pull_request":{"href":"https://api.github.com/repos/tonymillion/Reachability/pulls/118"}}},"pull_request":{"url":"https://api.github.com/repos/tonymillion/Reachability/pulls/118","id":47283439,"html_url":"https://github.com/tonymillion/Reachability/pull/118","diff_url":"https://github.com/tonymillion/Reachability/pull/118.diff","patch_url":"https://github.com/tonymillion/Reachability/pull/118.patch","issue_url":"https://api.github.com/repos/tonymillion/Reachability/issues/118","number":118,"state":"open","locked":false,"title":"fix SA xcode 7 pointed out","user":{"login":"jcarroll3","id":1003052,"avatar_url":"https://avatars.githubusercontent.com/u/1003052?v=3","gravatar_id":"","url":"https://api.github.com/users/jcarroll3","html_url":"https://github.com/jcarroll3","followers_url":"https://api.github.com/users/jcarroll3/followers","following_url":"https://api.github.com/users/jcarroll3/following{/other_user}","gists_url":"https://api.github.com/users/jcarroll3/gists{/gist_id}","starred_url":"https://api.github.com/users/jcarroll3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcarroll3/subscriptions","organizations_url":"https://api.github.com/users/jcarroll3/orgs","repos_url":"https://api.github.com/users/jcarroll3/repos","events_url":"https://api.github.com/users/jcarroll3/events{/privacy}","received_events_url":"https://api.github.com/users/jcarroll3/received_events","type":"User","site_admin":false},"body":"quick fix to SA warnings found in xcode 7\r\n\r\nhttps://github.com/tonymillion/Reachability/issues/114","created_at":"2015-10-09T15:11:52Z","updated_at":"2015-12-16T17:16:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eaeffd3071818300ab66681f1c5636843d2f3abd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tonymillion/Reachability/pulls/118/commits","review_comments_url":"https://api.github.com/repos/tonymillion/Reachability/pulls/118/comments","review_comment_url":"https://api.github.com/repos/tonymillion/Reachability/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tonymillion/Reachability/issues/118/comments","statuses_url":"https://api.github.com/repos/tonymillion/Reachability/statuses/de58c9a3ae27efe1e3763c9e4a0b3fa0ed15ef0e","head":{"label":"jcarroll3:master","ref":"master","sha":"de58c9a3ae27efe1e3763c9e4a0b3fa0ed15ef0e","user":{"login":"jcarroll3","id":1003052,"avatar_url":"https://avatars.githubusercontent.com/u/1003052?v=3","gravatar_id":"","url":"https://api.github.com/users/jcarroll3","html_url":"https://github.com/jcarroll3","followers_url":"https://api.github.com/users/jcarroll3/followers","following_url":"https://api.github.com/users/jcarroll3/following{/other_user}","gists_url":"https://api.github.com/users/jcarroll3/gists{/gist_id}","starred_url":"https://api.github.com/users/jcarroll3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcarroll3/subscriptions","organizations_url":"https://api.github.com/users/jcarroll3/orgs","repos_url":"https://api.github.com/users/jcarroll3/repos","events_url":"https://api.github.com/users/jcarroll3/events{/privacy}","received_events_url":"https://api.github.com/users/jcarroll3/received_events","type":"User","site_admin":false},"repo":{"id":43963069,"name":"Reachability","full_name":"jcarroll3/Reachability","owner":{"login":"jcarroll3","id":1003052,"avatar_url":"https://avatars.githubusercontent.com/u/1003052?v=3","gravatar_id":"","url":"https://api.github.com/users/jcarroll3","html_url":"https://github.com/jcarroll3","followers_url":"https://api.github.com/users/jcarroll3/followers","following_url":"https://api.github.com/users/jcarroll3/following{/other_user}","gists_url":"https://api.github.com/users/jcarroll3/gists{/gist_id}","starred_url":"https://api.github.com/users/jcarroll3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcarroll3/subscriptions","organizations_url":"https://api.github.com/users/jcarroll3/orgs","repos_url":"https://api.github.com/users/jcarroll3/repos","events_url":"https://api.github.com/users/jcarroll3/events{/privacy}","received_events_url":"https://api.github.com/users/jcarroll3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jcarroll3/Reachability","description":"ARC and GCD Compatible Reachability Class for iOS and MacOS. Drop in replacement for Apple Reachability","fork":true,"url":"https://api.github.com/repos/jcarroll3/Reachability","forks_url":"https://api.github.com/repos/jcarroll3/Reachability/forks","keys_url":"https://api.github.com/repos/jcarroll3/Reachability/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jcarroll3/Reachability/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jcarroll3/Reachability/teams","hooks_url":"https://api.github.com/repos/jcarroll3/Reachability/hooks","issue_events_url":"https://api.github.com/repos/jcarroll3/Reachability/issues/events{/number}","events_url":"https://api.github.com/repos/jcarroll3/Reachability/events","assignees_url":"https://api.github.com/repos/jcarroll3/Reachability/assignees{/user}","branches_url":"https://api.github.com/repos/jcarroll3/Reachability/branches{/branch}","tags_url":"https://api.github.com/repos/jcarroll3/Reachability/tags","blobs_url":"https://api.github.com/repos/jcarroll3/Reachability/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jcarroll3/Reachability/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jcarroll3/Reachability/git/refs{/sha}","trees_url":"https://api.github.com/repos/jcarroll3/Reachability/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jcarroll3/Reachability/statuses/{sha}","languages_url":"https://api.github.com/repos/jcarroll3/Reachability/languages","stargazers_url":"https://api.github.com/repos/jcarroll3/Reachability/stargazers","contributors_url":"https://api.github.com/repos/jcarroll3/Reachability/contributors","subscribers_url":"https://api.github.com/repos/jcarroll3/Reachability/subscribers","subscription_url":"https://api.github.com/repos/jcarroll3/Reachability/subscription","commits_url":"https://api.github.com/repos/jcarroll3/Reachability/commits{/sha}","git_commits_url":"https://api.github.com/repos/jcarroll3/Reachability/git/commits{/sha}","comments_url":"https://api.github.com/repos/jcarroll3/Reachability/comments{/number}","issue_comment_url":"https://api.github.com/repos/jcarroll3/Reachability/issues/comments{/number}","contents_url":"https://api.github.com/repos/jcarroll3/Reachability/contents/{+path}","compare_url":"https://api.github.com/repos/jcarroll3/Reachability/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jcarroll3/Reachability/merges","archive_url":"https://api.github.com/repos/jcarroll3/Reachability/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jcarroll3/Reachability/downloads","issues_url":"https://api.github.com/repos/jcarroll3/Reachability/issues{/number}","pulls_url":"https://api.github.com/repos/jcarroll3/Reachability/pulls{/number}","milestones_url":"https://api.github.com/repos/jcarroll3/Reachability/milestones{/number}","notifications_url":"https://api.github.com/repos/jcarroll3/Reachability/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jcarroll3/Reachability/labels{/name}","releases_url":"https://api.github.com/repos/jcarroll3/Reachability/releases{/id}","created_at":"2015-10-09T15:09:07Z","updated_at":"2015-10-09T15:09:08Z","pushed_at":"2015-10-09T15:11:31Z","git_url":"git://github.com/jcarroll3/Reachability.git","ssh_url":"git@github.com:jcarroll3/Reachability.git","clone_url":"https://github.com/jcarroll3/Reachability.git","svn_url":"https://github.com/jcarroll3/Reachability","homepage":"","size":175,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"tonymillion:master","ref":"master","sha":"1c4661fe44b03b6cbe68675c8aa054c6c3db67e6","user":{"login":"tonymillion","id":316954,"avatar_url":"https://avatars.githubusercontent.com/u/316954?v=3","gravatar_id":"","url":"https://api.github.com/users/tonymillion","html_url":"https://github.com/tonymillion","followers_url":"https://api.github.com/users/tonymillion/followers","following_url":"https://api.github.com/users/tonymillion/following{/other_user}","gists_url":"https://api.github.com/users/tonymillion/gists{/gist_id}","starred_url":"https://api.github.com/users/tonymillion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonymillion/subscriptions","organizations_url":"https://api.github.com/users/tonymillion/orgs","repos_url":"https://api.github.com/users/tonymillion/repos","events_url":"https://api.github.com/users/tonymillion/events{/privacy}","received_events_url":"https://api.github.com/users/tonymillion/received_events","type":"User","site_admin":false},"repo":{"id":2759563,"name":"Reachability","full_name":"tonymillion/Reachability","owner":{"login":"tonymillion","id":316954,"avatar_url":"https://avatars.githubusercontent.com/u/316954?v=3","gravatar_id":"","url":"https://api.github.com/users/tonymillion","html_url":"https://github.com/tonymillion","followers_url":"https://api.github.com/users/tonymillion/followers","following_url":"https://api.github.com/users/tonymillion/following{/other_user}","gists_url":"https://api.github.com/users/tonymillion/gists{/gist_id}","starred_url":"https://api.github.com/users/tonymillion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonymillion/subscriptions","organizations_url":"https://api.github.com/users/tonymillion/orgs","repos_url":"https://api.github.com/users/tonymillion/repos","events_url":"https://api.github.com/users/tonymillion/events{/privacy}","received_events_url":"https://api.github.com/users/tonymillion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tonymillion/Reachability","description":"ARC and GCD Compatible Reachability Class for iOS and MacOS. Drop in replacement for Apple Reachability","fork":false,"url":"https://api.github.com/repos/tonymillion/Reachability","forks_url":"https://api.github.com/repos/tonymillion/Reachability/forks","keys_url":"https://api.github.com/repos/tonymillion/Reachability/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tonymillion/Reachability/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tonymillion/Reachability/teams","hooks_url":"https://api.github.com/repos/tonymillion/Reachability/hooks","issue_events_url":"https://api.github.com/repos/tonymillion/Reachability/issues/events{/number}","events_url":"https://api.github.com/repos/tonymillion/Reachability/events","assignees_url":"https://api.github.com/repos/tonymillion/Reachability/assignees{/user}","branches_url":"https://api.github.com/repos/tonymillion/Reachability/branches{/branch}","tags_url":"https://api.github.com/repos/tonymillion/Reachability/tags","blobs_url":"https://api.github.com/repos/tonymillion/Reachability/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tonymillion/Reachability/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tonymillion/Reachability/git/refs{/sha}","trees_url":"https://api.github.com/repos/tonymillion/Reachability/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tonymillion/Reachability/statuses/{sha}","languages_url":"https://api.github.com/repos/tonymillion/Reachability/languages","stargazers_url":"https://api.github.com/repos/tonymillion/Reachability/stargazers","contributors_url":"https://api.github.com/repos/tonymillion/Reachability/contributors","subscribers_url":"https://api.github.com/repos/tonymillion/Reachability/subscribers","subscription_url":"https://api.github.com/repos/tonymillion/Reachability/subscription","commits_url":"https://api.github.com/repos/tonymillion/Reachability/commits{/sha}","git_commits_url":"https://api.github.com/repos/tonymillion/Reachability/git/commits{/sha}","comments_url":"https://api.github.com/repos/tonymillion/Reachability/comments{/number}","issue_comment_url":"https://api.github.com/repos/tonymillion/Reachability/issues/comments{/number}","contents_url":"https://api.github.com/repos/tonymillion/Reachability/contents/{+path}","compare_url":"https://api.github.com/repos/tonymillion/Reachability/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tonymillion/Reachability/merges","archive_url":"https://api.github.com/repos/tonymillion/Reachability/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tonymillion/Reachability/downloads","issues_url":"https://api.github.com/repos/tonymillion/Reachability/issues{/number}","pulls_url":"https://api.github.com/repos/tonymillion/Reachability/pulls{/number}","milestones_url":"https://api.github.com/repos/tonymillion/Reachability/milestones{/number}","notifications_url":"https://api.github.com/repos/tonymillion/Reachability/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tonymillion/Reachability/labels{/name}","releases_url":"https://api.github.com/repos/tonymillion/Reachability/releases{/id}","created_at":"2011-11-12T00:45:36Z","updated_at":"2015-12-16T12:34:27Z","pushed_at":"2015-12-15T00:48:11Z","git_url":"git://github.com/tonymillion/Reachability.git","ssh_url":"git@github.com:tonymillion/Reachability.git","clone_url":"https://github.com/tonymillion/Reachability.git","svn_url":"https://github.com/tonymillion/Reachability","homepage":"","size":169,"stargazers_count":4879,"watchers_count":4879,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":936,"mirror_url":null,"open_issues_count":40,"forks":936,"open_issues":40,"watchers":4879,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tonymillion/Reachability/pulls/118"},"html":{"href":"https://github.com/tonymillion/Reachability/pull/118"},"issue":{"href":"https://api.github.com/repos/tonymillion/Reachability/issues/118"},"comments":{"href":"https://api.github.com/repos/tonymillion/Reachability/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/tonymillion/Reachability/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/tonymillion/Reachability/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tonymillion/Reachability/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/tonymillion/Reachability/statuses/de58c9a3ae27efe1e3763c9e4a0b3fa0ed15ef0e"}}}}