{"action":"created","issue":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/1222","labels_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1222/labels{/name}","comments_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1222/comments","events_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1222/events","html_url":"https://github.com/MailCore/mailcore2/issues/1222","id":105028363,"number":1222,"title":"Memory leaks","user":{"login":"sundsx","id":1713528,"avatar_url":"https://avatars.githubusercontent.com/u/1713528?v=3","gravatar_id":"","url":"https://api.github.com/users/sundsx","html_url":"https://github.com/sundsx","followers_url":"https://api.github.com/users/sundsx/followers","following_url":"https://api.github.com/users/sundsx/following{/other_user}","gists_url":"https://api.github.com/users/sundsx/gists{/gist_id}","starred_url":"https://api.github.com/users/sundsx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sundsx/subscriptions","organizations_url":"https://api.github.com/users/sundsx/orgs","repos_url":"https://api.github.com/users/sundsx/repos","events_url":"https://api.github.com/users/sundsx/events{/privacy}","received_events_url":"https://api.github.com/users/sundsx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-05T14:02:00Z","updated_at":"2015-09-11T13:10:53Z","closed_at":null,"body":"   Please can you provide a fixed class?\r\n \r\n    _session = [[MCOIMAPSession alloc] init];\r\n    _session.hostname = @\"mail....\";\r\n    _session.port = 993;\r\n    _session.username = @\"mail\";\r\n    _session.password = @\"xxxx\";\r\n    [_session setCheckCertificateEnabled:NO];\r\n    _session.connectionType = MCOConnectionTypeTLS;\r\n    \r\n    NSMutableArray *folderarray = [[NSMutableArray alloc] init];\r\n    [[_session fetchAllFoldersOperation] start:^(NSError *error, NSArray *folders) {\r\n        NSMutableString *folderDetails = [NSMutableString new];\r\n        for (MCOIMAPFolder *fdr in folders) {\r\n            \r\n            [folderDetails appendFormat:@\"\\nFolder[%@], flag : %ld\", fdr.path, (long)fdr.flags];\r\n            [folderarray addObject:fdr.path];\r\n        }\r\n        NSLog(@\"Folder Details2: %@\", folderDetails);\r\n        if (folderarray!=nil) {\r\n            \r\n            NSLog(@\"folderarray: %@\", folderarray.description);\r\n          //...\r\n             }\r\n         }];\r\n    \r\n![schermata 2015-09-05 alle 15 51 43](https://cloud.githubusercontent.com/assets/1713528/9699532/b6a5756c-53e6-11e5-864c-c7d54f8bca67.png)\r\n"},"comment":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/comments/139541674","html_url":"https://github.com/MailCore/mailcore2/issues/1222#issuecomment-139541674","issue_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1222","id":139541674,"user":{"login":"sundsx","id":1713528,"avatar_url":"https://avatars.githubusercontent.com/u/1713528?v=3","gravatar_id":"","url":"https://api.github.com/users/sundsx","html_url":"https://github.com/sundsx","followers_url":"https://api.github.com/users/sundsx/followers","following_url":"https://api.github.com/users/sundsx/following{/other_user}","gists_url":"https://api.github.com/users/sundsx/gists{/gist_id}","starred_url":"https://api.github.com/users/sundsx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sundsx/subscriptions","organizations_url":"https://api.github.com/users/sundsx/orgs","repos_url":"https://api.github.com/users/sundsx/repos","events_url":"https://api.github.com/users/sundsx/events{/privacy}","received_events_url":"https://api.github.com/users/sundsx/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T13:10:52Z","updated_at":"2015-09-11T13:10:52Z","body":"i can't explicit dealloc under ARC. so i  Just set the ivar to nil:   _session = nil;\r\n\r\nas a documentation:\r\nunder ARC the compiler automatically inserts the necessary retain and release calls."}}