Merge pull request #130 from rudensm/memory-leak

Remove delegates on dealloc
This commit is contained in:
Roman Efimov
2013-12-31 08:55:02 -08:00

View File

@@ -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];