diff options
author | Ansis Brammanis <ansis@mapbox.com> | 2019-03-27 18:31:36 -0400 |
---|---|---|
committer | Ansis Brammanis <ansis@mapbox.com> | 2019-03-27 18:31:36 -0400 |
commit | f2156a4b831d1576d72fd7bb50132ef0ded75de3 (patch) | |
tree | 2e6b62b8bf6f4f89b1313fa62301f8a02b4a4950 | |
parent | 8629e373e21d30cc57399661b5e468331760113d (diff) | |
download | qtlocation-mapboxgl-f2156a4b831d1576d72fd7bb50132ef0ded75de3.tar.gz |
fixup
-rw-r--r-- | src/mbgl/renderer/image_manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/renderer/image_manager.cpp b/src/mbgl/renderer/image_manager.cpp index cdcf83210a..dda46a8db6 100644 --- a/src/mbgl/renderer/image_manager.cpp +++ b/src/mbgl/renderer/image_manager.cpp @@ -120,9 +120,9 @@ void ImageManager::checkMissingAndNotify(ImageRequestor& requestor, const ImageR auto it = images.find(dependency.first); if (it == images.end()) { observer->onStyleImageMissing(dependency.first, [this, requestorPtr]() { - auto it = missingImageRequestors.find(requestorPtr); - if (it != missingImageRequestors.end()) { - it->second.callbacksRemaining--; + auto missing = missingImageRequestors.find(requestorPtr); + if (missing != missingImageRequestors.end()) { + missing->second.callbacksRemaining--; } }); } |