forked from organicmaps/organicmaps
Fixed missing glyphs deletion
This commit is contained in:
parent
fa28dab7cf
commit
a900765c81
1 changed files with 7 additions and 0 deletions
|
@ -101,7 +101,14 @@ void GlyphGenerator::OnTaskFinished(ref_ptr<Listener> listener,
|
|||
m_glyphsCounter -= glyphs.size();
|
||||
|
||||
if (m_listeners.find(listener) != m_listeners.end())
|
||||
{
|
||||
listener->OnCompleteGlyphGeneration(std::move(glyphs));
|
||||
}
|
||||
else
|
||||
{
|
||||
for (auto & data : glyphs)
|
||||
data.DestroyGlyph();
|
||||
}
|
||||
|
||||
m_activeTasks.Remove(task);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue