From e9a9f85bc0a44d146cdae7189b2ccc46679a8f08 Mon Sep 17 00:00:00 2001 From: ruoyi Date: Tue, 20 Apr 2021 17:27:57 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20=E5=BD=93=E8=87=AA=E5=AE=9A=E4=B9=89=20?= =?UTF-8?q?dismiss=20=E7=9A=84=E6=89=8B=E5=8A=BF=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E4=BA=A7=E7=94=9F=E7=9A=84=E8=AF=AF?= =?UTF-8?q?=E5=88=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MLeaksFinder/UIViewController+MemoryLeak.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLeaksFinder/UIViewController+MemoryLeak.m b/MLeaksFinder/UIViewController+MemoryLeak.m index 5c59bf6..6a57797 100644 --- a/MLeaksFinder/UIViewController+MemoryLeak.m +++ b/MLeaksFinder/UIViewController+MemoryLeak.m @@ -53,7 +53,7 @@ - (void)swizzled_dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(v if (!dismissedViewController) return; - [dismissedViewController willDealloc]; + objc_setAssociatedObject(self, kHasBeenPoppedKey, @(YES), OBJC_ASSOCIATION_RETAIN); } - (BOOL)willDealloc {