[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

@@ -22,10 +22,10 @@ using namespace mbgl;
class VectorTileTest {
public:
FakeFileSource fileSource;
std::shared_ptr<FileSource> fileSource = std::make_shared<FakeFileSource>();
TransformState transformState;
util::RunLoop loop;
style::Style style { fileSource, 1 };
style::Style style { *fileSource, 1 };
AnnotationManager annotationManager { style };
ImageManager imageManager;
GlyphManager glyphManager;