Skip to content

Commit

Permalink
Fixed a error in garbage collection
Browse files Browse the repository at this point in the history
  • Loading branch information
KKQ-KKQ committed Feb 16, 2024
1 parent 795fe2e commit 1563428
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sfizz/FilePool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@ void sfz::FilePool::triggerGarbageCollection() noexcept
if (readerCount == 0) {
data.availableFrames = 0;
garbageToCollect.push_back(std::move(data.fileData));
data.status = FileData::Status::Preloaded;
return true;
}
data.status = status;
Expand Down

0 comments on commit 1563428

Please sign in to comment.