Skip to content

Commit

Permalink
Nil the tableview delegate and data sources when dealloc
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlewis committed Apr 28, 2015
1 parent 9eab83b commit ba7e75f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SSDataSources/SSBaseDataSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ - (void)dealloc {
self.collectionSupplementaryCreationBlock = nil;
self.tableActionBlock = nil;
self.tableDeletionBlock = nil;
self.tableView.delegate = nil;
self.tableView.dataSource = nil;
self.collectionView.delegate = nil;
self.collectionView.dataSource = nil;
}

#pragma mark - SSBaseDataSource
Expand Down

0 comments on commit ba7e75f

Please sign in to comment.