1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

GlyphCache multithreading fix.

This commit is contained in:
jules 2014-03-20 13:08:27 +00:00
parent 5feabe9687
commit 6c17d3ca74

View file

@ -248,7 +248,8 @@ private:
{
CachedGlyphType* const glyph = glyphs.getUnchecked(i);
if (glyph->lastAccessCount <= oldestCounter)
if (glyph->lastAccessCount <= oldestCounter
&& glyph->getReferenceCount() == 1)
{
oldestCounter = glyph->lastAccessCount;
oldest = glyph;