ソースを参照

SCNetworkReachability objects not freed when startNotify called.

Doug Richardson 10 年 前
コミット
68f565f331
1 ファイル変更1 行追加0 行削除
  1. 1 0
      Reachability.swift

+ 1 - 0
Reachability.swift

@@ -151,6 +151,7 @@ public class Reachability: NSObject {
     public func stopNotifier() {
         if let reachabilityRef = reachabilityRef {
             SCNetworkReachabilitySetCallback(reachabilityRef, nil, nil)
+            SCNetworkReachabilitySetDispatchQueue(reachabilityRef, nil)
         }
         notifierRunning = false
     }