diff options
author | Fabian Guerra <fabian.guerra@mapbox.com> | 2018-02-06 18:08:34 -0500 |
---|---|---|
committer | Fabian Guerra <fabian.guerra@mapbox.com> | 2018-02-12 13:47:41 -0500 |
commit | b1a873199e145770301463e99640c1aa298fc5e7 (patch) | |
tree | 82ae0941f37b844ffed0d69c4788816cb6ba1443 /platform/darwin/src/MGLAttributionInfo.mm | |
parent | cdaf90d2e75a8d8f6924caf657ca5ff3d1ae6adb (diff) | |
download | qtlocation-mapboxgl-b1a873199e145770301463e99640c1aa298fc5e7.tar.gz |
[ios, macos] Fix memory leaks in MGLMapSnapshotter.upstream/fabian-snapshotter-leaks-11117
Diffstat (limited to 'platform/darwin/src/MGLAttributionInfo.mm')
-rw-r--r-- | platform/darwin/src/MGLAttributionInfo.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLAttributionInfo.mm b/platform/darwin/src/MGLAttributionInfo.mm index 52a83fd18e..65636d0bec 100644 --- a/platform/darwin/src/MGLAttributionInfo.mm +++ b/platform/darwin/src/MGLAttributionInfo.mm @@ -70,7 +70,7 @@ documentAttributes:nil]; #endif - NSMutableArray *infos = [NSMutableArray array]; + __block NSMutableArray *infos = [NSMutableArray array]; [attributedString enumerateAttribute:NSLinkAttributeName inRange:attributedString.mgl_wholeRange options:0 |