You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dealloc code releases _reusableViewsDictionary first, but then cleanupColumns code path will re-create the dictionary and leak all objects in it. The fix is to move cleanupColumns to the beginning of dealloc.
dealloc code releases _reusableViewsDictionary first, but then cleanupColumns code path will re-create the dictionary and leak all objects in it. The fix is to move cleanupColumns to the beginning of dealloc.
(void)dealloc {
[_indexPaths release], _indexPaths = nil;
[_reusableViewsDictionary release], _reusableViewsDictionary = nil;
[_rowsToInsert release], _rowsToInsert = nil;
[_rowsToDelete release], _rowsToDelete = nil;
[self cleanupColumns]; <== leaks _reusableViewsDictionary
[self removeGestureRecognizer:self.tapGestureRecognizer];
[_tapGestureRecognizer release], _tapGestureRecognizer = nil;
[super dealloc];
}
The text was updated successfully, but these errors were encountered: