Skip to content

Commit

Permalink
fix(ios): fix rare crash in Ti.UI.TableView (#13514)
Browse files Browse the repository at this point in the history
* fix: add self-check to proxy

* fix(ios): add additional nil-check
  • Loading branch information
hansemannn committed Sep 10, 2022
1 parent 661a8bb commit 10f084f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iphone/Classes/TiUITableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ - (id)initWithStyle:(UITableViewCellStyle)style_ reuseIdentifier:(NSString *)reu

- (void)dealloc
{
[proxy setCallbackCell:nil];
if (proxy != nil && [proxy callbackCell] == self) {
[proxy setCallbackCell:nil];
}

RELEASE_TO_NIL(proxy);
RELEASE_TO_NIL(gradientLayer);
Expand Down

0 comments on commit 10f084f

Please sign in to comment.