Erase from the correct structure

This commit is contained in:
Paul Ferrand 2021-11-19 13:07:17 +01:00
parent ec439d2034
commit 9cf7b0b076

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);
}
}
}