Merge pull request #1031 from paulfd/loaded-files-bug

Erase from the correct structure
This commit is contained in:
Paul Ferrand 2021-11-19 13:07:43 +01:00 committed by GitHub
commit fbc0e7459a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -358,7 +358,7 @@ void sfz::FilePool::removeUnusedPreloadedData() noexcept
auto copyIt = it++;
if (copyIt->second.preloadCallCount == 0) {
DBG("[sfizz] Removing unused loaded data: " << copyIt->first.filename());
preloadedFiles.erase(copyIt);
loadedFiles.erase(copyIt);
}
}
}