Fixed missing glyphs deletion

This commit is contained in:
r.kuznetsov 2018-02-19 17:57:42 +03:00 committed by Daria Volvenkova
parent fa28dab7cf
commit a900765c81

View file

@ -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);
}