From 0986fa285ed00bb3a37fb0284d885ab1547242a5 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 16 Aug 2020 15:06:19 -0400 Subject: [PATCH] Fix crash due to leaked table view cell --- Tusker/Views/Status/TimelineStatusTableViewCell.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tusker/Views/Status/TimelineStatusTableViewCell.swift b/Tusker/Views/Status/TimelineStatusTableViewCell.swift index afad3c10be..abf03d78b4 100644 --- a/Tusker/Views/Status/TimelineStatusTableViewCell.swift +++ b/Tusker/Views/Status/TimelineStatusTableViewCell.swift @@ -58,7 +58,8 @@ class TimelineStatusTableViewCell: BaseStatusTableViewCell { .filter { [unowned self] in $0 == self.rebloggerID } .receive(on: DispatchQueue.main) .sink { [unowned self] in - if let reblogger = self.mastodonController.persistentContainer.account(for: $0) { + if let mastodonController = self.mastodonController, + let reblogger = mastodonController.persistentContainer.account(for: $0) { self.updateRebloggerLabel(reblogger: reblogger) } }