Clear the remaining files when clearing up the filepool

This commit is contained in:
paulfd 2019-09-17 22:30:48 +02:00
parent 6c70269fcc
commit 1e7d744460

View file

@ -156,6 +156,7 @@ void sfz::FilePool::garbageThread() noexcept
void sfz::FilePool::clear()
{
preloadedData.clear();
fileHandles.clear();
while (loadingQueue.pop()) {
// Pop the queue
}