Browse Source

ImageCache: Avoid assertion in destructor

v7.0.9
reuk 2 years ago
parent
commit
1ad3430e14
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      modules/juce_graphics/images/juce_ImageCache.cpp

+ 6
- 1
modules/juce_graphics/images/juce_ImageCache.cpp View File

@@ -30,7 +30,12 @@ struct ImageCache::Pimpl : private Timer,
private DeletedAtShutdown
{
Pimpl() = default;
~Pimpl() override { clearSingletonInstance(); }
~Pimpl() override
{
stopTimer();
clearSingletonInstance();
}
JUCE_DECLARE_SINGLETON (ImageCache::Pimpl, false)


Loading…
Cancel
Save