Skip to content

Commit

Permalink
Added a fairly stupid check on sample format_ before attempting to de…
Browse files Browse the repository at this point in the history
…lete. Just testing the CI runners.
  • Loading branch information
cboulay committed May 25, 2024
1 parent 7e61a2e commit ea1f777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ sample *factory::pop_freelist() {

factory::~factory() {
for (sample *cur = tail_, *next = cur->next_;; cur = next, next = next->next_) {
if (cur != sentinel()) delete cur;
if (cur->format_ > cft_undefined && cur->format_ <= _cft_maxval && cur != sentinel()) delete cur;
if (!next) break;
}
delete[] storage_;
Expand Down

0 comments on commit ea1f777

Please sign in to comment.