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:
parent
5feabe9687
commit
6c17d3ca74
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue