summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-05-05 12:10:44 -0400
committerMinh Nguyễn <mxn@1ec5.org>2015-05-05 12:10:44 -0400
commitec3757309f6db3ad5a583129c62f245893ecb72f (patch)
tree66a78e424c6d692b82d67a366169ec6ddb00f890 /platform
parentfc576ddef67e15027d027bdc486b0723b8383af3 (diff)
downloadqtlocation-mapboxgl-ec3757309f6db3ad5a583129c62f245893ecb72f.tar.gz
Fixed leaks of copied CF objects
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/MGLMapboxEvents.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m
index 67e51158e2..4450fa87fb 100644
--- a/platform/ios/MGLMapboxEvents.m
+++ b/platform/ios/MGLMapboxEvents.m
@@ -617,10 +617,11 @@ NSString *const MGLEventGestureRotateStart = @"Rotation";
NSString *ssid = nil;
CFArrayRef interfaces = CNCopySupportedInterfaces();
if (interfaces) {
- NSDictionary *info = (__bridge NSDictionary *)CNCopyCurrentNetworkInfo(CFArrayGetValueAtIndex(interfaces, 0));
+ NSDictionary *info = CFBridgingRelease(CNCopyCurrentNetworkInfo(CFArrayGetValueAtIndex(interfaces, 0)));
if (info) {
ssid = info[@"SSID"];
}
+ CFRelease(interfaces);
}
return ssid;