Merge pull request #1031 from paulfd/loaded-files-bug
Erase from the correct structure
This commit is contained in:
commit
fbc0e7459a
1 changed files with 1 additions and 1 deletions
|
|
@ -358,7 +358,7 @@ void sfz::FilePool::removeUnusedPreloadedData() noexcept
|
||||||
auto copyIt = it++;
|
auto copyIt = it++;
|
||||||
if (copyIt->second.preloadCallCount == 0) {
|
if (copyIt->second.preloadCallCount == 0) {
|
||||||
DBG("[sfizz] Removing unused loaded data: " << copyIt->first.filename());
|
DBG("[sfizz] Removing unused loaded data: " << copyIt->first.filename());
|
||||||
preloadedFiles.erase(copyIt);
|
loadedFiles.erase(copyIt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue