[core] GeometryTile and TileLoader keep strong reference to FileSource

Thus we fix a potential bug: if `Renderer` outlives the `Map` it will hold a stale reference to the `FileSource` instance.
This commit is contained in:
Mikhail Pozdnyakov
2019-05-13 16:37:40 +03:00
parent 7e77aff8df
commit 5b6a262e15
13 changed files with 65 additions and 62 deletions

View File

@@ -63,7 +63,7 @@ void Map::Impl::onUpdate() {
style->impl->getSourceImpls(),
style->impl->getLayerImpls(),
annotationManager,
*fileSource,
fileSource,
prefetchZoomDelta,
bool(stillImageRequest),
crossSourceCollisions