mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Fix potential order-of-destruction bug in AvailableModulesList
When the AvailableModulesList is destroyed, it will wait for the current module scanning job (running on a background thread) to complete. This job will try to take the AvailableModulesList::lock when it completes, so the lock must outlive the background thread.
This commit is contained in:
parent
f269f1d6c9
commit
474e6d73a4
1 changed files with 1 additions and 1 deletions
|
|
@ -169,10 +169,10 @@ private:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
std::future<void> scanner;
|
||||
ModuleIDAndFolderList modulesList;
|
||||
ListenerList<Listener> listeners;
|
||||
CriticalSection lock;
|
||||
std::future<void> scanner;
|
||||
|
||||
//==============================================================================
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AvailableModulesList)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue