fix(renderer): guard ImageManager callback against use-after-free (#4233)

This commit is contained in:
Jonas
2026-05-12 12:50:19 +02:00
committed by GitHub
parent 9faee4790b
commit 6b9b342bf3
10 changed files with 116 additions and 116 deletions

View File

@@ -63,7 +63,7 @@ public:
Transform transform;
TransformState transformState;
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;
TaggedScheduler threadPool;