{"action":"created","issue":{"url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/97","labels_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/97/comments","events_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/97/events","html_url":"https://github.com/dzenbot/DZNEmptyDataSet/issues/97","id":94742874,"number":97,"title":"Deallocation of TableViewController causes crash","user":{"login":"tbechtum","id":8265121,"avatar_url":"https://avatars.githubusercontent.com/u/8265121?v=3","gravatar_id":"","url":"https://api.github.com/users/tbechtum","html_url":"https://github.com/tbechtum","followers_url":"https://api.github.com/users/tbechtum/followers","following_url":"https://api.github.com/users/tbechtum/following{/other_user}","gists_url":"https://api.github.com/users/tbechtum/gists{/gist_id}","starred_url":"https://api.github.com/users/tbechtum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbechtum/subscriptions","organizations_url":"https://api.github.com/users/tbechtum/orgs","repos_url":"https://api.github.com/users/tbechtum/repos","events_url":"https://api.github.com/users/tbechtum/events{/privacy}","received_events_url":"https://api.github.com/users/tbechtum/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-13T15:07:01Z","updated_at":"2015-07-14T09:38:04Z","closed_at":"2015-07-13T15:47:47Z","body":"When using the new release 1.6 then this happens when deallocation the TVC using DZNEmptyDataSet\r\n\r\n2015-07-13 16:58:43.683 -[UITableView release]: message sent to deallocated instance\r\n\r\nThis happens even if the data set source and the delegate is set to nil.\r\n\r\n-(void)dealloc\r\n{\r\n    DLog(@\"Dealloc %@ \",[self class]);\r\n    self.tableView.emptyDataSetSource = nil;\r\n    self.tableView.emptyDataSetDelegate = nil;\r\n}"},"comment":{"url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/comments/121180820","html_url":"https://github.com/dzenbot/DZNEmptyDataSet/issues/97#issuecomment-121180820","issue_url":"https://api.github.com/repos/dzenbot/DZNEmptyDataSet/issues/97","id":121180820,"user":{"login":"craigmarvelley","id":265907,"avatar_url":"https://avatars.githubusercontent.com/u/265907?v=3","gravatar_id":"","url":"https://api.github.com/users/craigmarvelley","html_url":"https://github.com/craigmarvelley","followers_url":"https://api.github.com/users/craigmarvelley/followers","following_url":"https://api.github.com/users/craigmarvelley/following{/other_user}","gists_url":"https://api.github.com/users/craigmarvelley/gists{/gist_id}","starred_url":"https://api.github.com/users/craigmarvelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigmarvelley/subscriptions","organizations_url":"https://api.github.com/users/craigmarvelley/orgs","repos_url":"https://api.github.com/users/craigmarvelley/repos","events_url":"https://api.github.com/users/craigmarvelley/events{/privacy}","received_events_url":"https://api.github.com/users/craigmarvelley/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T09:38:04Z","updated_at":"2015-07-14T09:38:04Z","body":"Hi, this issue still occurs for me on 1.6.1 (iOS 8.4). Inside `void dzn_original_implementation(id self, SEL _cmd)`, going on to call\r\n\r\n```\r\nif (impPointer) {\r\n    ((void(*)(id,SEL))impPointer)(self,_cmd);\r\n}\r\n```\r\n\r\nduring tableview deallocation seems to trigger the crash. (My tableview is within a UITableViewController that is created from a storyboard)."}}