{"comment":{"url":"https://api.github.com/repos/facebook/xctool/comments/13650069","html_url":"https://github.com/facebook/xctool/commit/b5141da4b0e3a9c8da8dd65ebab96144ea6e17b0#commitcomment-13650069","id":13650069,"user":{"login":"yiding","id":240535,"avatar_url":"https://avatars.githubusercontent.com/u/240535?v=3","gravatar_id":"","url":"https://api.github.com/users/yiding","html_url":"https://github.com/yiding","followers_url":"https://api.github.com/users/yiding/followers","following_url":"https://api.github.com/users/yiding/following{/other_user}","gists_url":"https://api.github.com/users/yiding/gists{/gist_id}","starred_url":"https://api.github.com/users/yiding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiding/subscriptions","organizations_url":"https://api.github.com/users/yiding/orgs","repos_url":"https://api.github.com/users/yiding/repos","events_url":"https://api.github.com/users/yiding/events{/privacy}","received_events_url":"https://api.github.com/users/yiding/received_events","type":"User","site_admin":false},"position":40,"line":48,"path":"xctool/xctool/TaskUtil.m","commit_id":"b5141da4b0e3a9c8da8dd65ebab96144ea6e17b0","created_at":"2015-10-07T21:37:43Z","updated_at":"2015-10-07T21:37:43Z","body":"ARC and autorelease are different concepts.\r\n\r\nIf you mean, should arc handle memory management, the answer is no, since this file is not ARC.\r\nIf you mean, should this object be autoreleased by an autorelease pool, the answer is no, because mutable copy gives you a retained object, not an autoreleased object.\r\n\r\nAutorelease mechanism lets you say \"I release ownership of this object some time later (when the autorelease block exits)\", it is the same as an eventual call to release. `mutableCopy` is similar to `new` and `alloc` in that you are given ownership of the object immediately, and autorelease is not called on your behalf.\r\n\r\nOnce again, read the linked article on memory management."}}