From 7dbb2e5d23c277ff0ed7cfe57e2433f1751b2240 Mon Sep 17 00:00:00 2001 From: Tony Li Date: Mon, 10 Jul 2023 18:32:19 +1200 Subject: [PATCH] Use weak reference to avoid a retain cycle --- .../ViewRelated/Reader/Comments/ReaderCommentsViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsViewController.m b/WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsViewController.m index baaf195788c2..1b44e7d036de 100644 --- a/WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsViewController.m +++ b/WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsViewController.m @@ -1123,7 +1123,7 @@ - (void)configureCell:(UITableViewCell *)aCell atIndexPath:(NSIndexPath *)indexP cell.accessoryButtonAction = ^(UIView * _Nonnull sourceView) { if (comment) { - [self shareComment:comment sourceView:sourceView]; + [weakSelf shareComment:comment sourceView:sourceView]; } };