Repository: cordova-plugin-network-information Updated Branches: refs/heads/master 83e870bf4 -> 3ded941ff
fixed two potential memory leaks when doing Analyze on iOS 9 Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/commit/3ded941f Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/tree/3ded941f Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/diff/3ded941f Branch: refs/heads/master Commit: 3ded941ff31db832f0b1ffa97cacb65350ca34c5 Parents: da7e85e Author: allenconquest <[email protected]> Authored: Tue Apr 19 15:40:05 2016 +0100 Committer: Jesse MacFadyen <[email protected]> Committed: Wed Jun 29 14:06:04 2016 -0700 ---------------------------------------------------------------------- src/ios/CDVReachability.m | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information/blob/3ded941f/src/ios/CDVReachability.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVReachability.m b/src/ios/CDVReachability.m index c60261a..1399867 100644 --- a/src/ios/CDVReachability.m +++ b/src/ios/CDVReachability.m @@ -142,6 +142,9 @@ static void CDVReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkRe retVal->reachabilityRef = reachability; retVal->localWiFiRef = NO; } + else { + CFRelease(reachability); + } } return retVal; } @@ -156,6 +159,9 @@ static void CDVReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkRe retVal->reachabilityRef = reachability; retVal->localWiFiRef = NO; } + else { + CFRelease(reachability); + } } return retVal; } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
