mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-06-14 10:09:11 +08:00
Merge pull request #130 from rudensm/memory-leak
Remove delegates on dealloc
This commit is contained in:
@@ -44,6 +44,13 @@
|
||||
[REValidation registerDefaultErrorMessages];
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
self.delegate = nil;
|
||||
self.tableView.delegate = nil;
|
||||
self.tableView.dataSource = nil;
|
||||
}
|
||||
|
||||
- (id)init
|
||||
{
|
||||
@throw [NSException exceptionWithName:NSGenericException reason:@"init not supported, use initWithTableView: instead." userInfo:nil];
|
||||
|
||||
Reference in New Issue
Block a user