fix(renderer): guard ImageManager callback against use-after-free (#4233)
This commit is contained in:
@@ -22,7 +22,7 @@ public:
|
||||
TransformState transformState;
|
||||
util::RunLoop loop;
|
||||
AnnotationManager annotationManager{style};
|
||||
std::shared_ptr<ImageManager> imageManager = std::make_shared<ImageManager>();
|
||||
std::shared_ptr<ImageManager> imageManager = ImageManager::create();
|
||||
std::shared_ptr<GlyphManager> glyphManager = std::make_shared<GlyphManager>();
|
||||
gfx::DynamicTextureAtlasPtr dynamicTextureAtlas;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user