{"action":"created","issue":{"url":"https://api.github.com/repos/kzaher/RxSwift/issues/24","labels_url":"https://api.github.com/repos/kzaher/RxSwift/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/kzaher/RxSwift/issues/24/comments","events_url":"https://api.github.com/repos/kzaher/RxSwift/issues/24/events","html_url":"https://github.com/kzaher/RxSwift/issues/24","id":81727760,"number":24,"title":"Question about where to put reactive code.","user":{"login":"dtartaglia","id":421435,"avatar_url":"https://avatars.githubusercontent.com/u/421435?v=3","gravatar_id":"","url":"https://api.github.com/users/dtartaglia","html_url":"https://github.com/dtartaglia","followers_url":"https://api.github.com/users/dtartaglia/followers","following_url":"https://api.github.com/users/dtartaglia/following{/other_user}","gists_url":"https://api.github.com/users/dtartaglia/gists{/gist_id}","starred_url":"https://api.github.com/users/dtartaglia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtartaglia/subscriptions","organizations_url":"https://api.github.com/users/dtartaglia/orgs","repos_url":"https://api.github.com/users/dtartaglia/repos","events_url":"https://api.github.com/users/dtartaglia/events{/privacy}","received_events_url":"https://api.github.com/users/dtartaglia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-28T02:49:55Z","updated_at":"2015-05-28T08:40:41Z","closed_at":null,"body":"I currently have my reactive code in the viewDidLoad method, and I dispose everything in the deinit.\r\n\r\nHowever, I noticed that when I exit my view controller, the deinit is never called. I confirmed that the view controller is not getting reused, and that my memory footprint goes up with every entry/exit of my view controller, but no leaks are detected...\r\n\r\nDoes anybody know what is going on?"},"comment":{"url":"https://api.github.com/repos/kzaher/RxSwift/issues/comments/106232979","html_url":"https://github.com/kzaher/RxSwift/issues/24#issuecomment-106232979","issue_url":"https://api.github.com/repos/kzaher/RxSwift/issues/24","id":106232979,"user":{"login":"kzaher","id":1641148,"avatar_url":"https://avatars.githubusercontent.com/u/1641148?v=3","gravatar_id":"","url":"https://api.github.com/users/kzaher","html_url":"https://github.com/kzaher","followers_url":"https://api.github.com/users/kzaher/followers","following_url":"https://api.github.com/users/kzaher/following{/other_user}","gists_url":"https://api.github.com/users/kzaher/gists{/gist_id}","starred_url":"https://api.github.com/users/kzaher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzaher/subscriptions","organizations_url":"https://api.github.com/users/kzaher/orgs","repos_url":"https://api.github.com/users/kzaher/repos","events_url":"https://api.github.com/users/kzaher/events{/privacy}","received_events_url":"https://api.github.com/users/kzaher/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T08:40:41Z","updated_at":"2015-05-28T08:40:41Z","body":"Hi @dtartaglia, leaks profiler in Xcode is useless. Apple has made a small dirty marketing trick there :)\r\n\r\nIf you use allocations profiler, you should see number of view controller objects in memory. \r\n\r\nUnfortunately, Apple has bug with profiling allocations on simulator, so you'll need to run profiler on real device, otherwise it won't show instances of some of your objects :(\r\n\r\n@manumax is right, you have retain cycle somewhere.\r\n\r\nWe can probably discuss things like that in slack, because otherwise we'll spam whoever is watching this repository :)"}}