diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2015-05-05 12:10:44 -0400 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2015-05-05 12:10:44 -0400 |
commit | ec3757309f6db3ad5a583129c62f245893ecb72f (patch) | |
tree | 66a78e424c6d692b82d67a366169ec6ddb00f890 /platform | |
parent | fc576ddef67e15027d027bdc486b0723b8383af3 (diff) | |
download | qtlocation-mapboxgl-ec3757309f6db3ad5a583129c62f245893ecb72f.tar.gz |
Fixed leaks of copied CF objects
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/MGLMapboxEvents.m | 3 |
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; |