From e0fe00134480c12a075633237ed4a48cc410b88f Mon Sep 17 00:00:00 2001 From: ohlulu Date: Tue, 11 Oct 2022 11:52:56 +0800 Subject: [PATCH] Fix: doesn't call self method on dealloc --- RealReachability/Ping/PingHelper.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RealReachability/Ping/PingHelper.m b/RealReachability/Ping/PingHelper.m index 4e7d5c3..0ded225 100755 --- a/RealReachability/Ping/PingHelper.m +++ b/RealReachability/Ping/PingHelper.m @@ -110,8 +110,7 @@ - (void)setHost:(NSString *)host _host = nil; _host = [host copy]; - self.pingFoundation.delegate = nil; - self.pingFoundation = nil; + [self clearPingFoundation]; self.pingFoundation = [[PingFoundation alloc] initWithHostName:_host];