mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-03 17:57:26 +00:00
fix file not closing when loading .dmc or .brr
This commit is contained in:
parent
4fffb76071
commit
c531f777af
1 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,7 @@ std::vector<DivSample*> DivEngine::sampleFromFile(const char* path) {
|
|||
logW("did not read entire sample bank file buffer!");
|
||||
lastError=_("did not read entire sample bank file!");
|
||||
delete[] buf;
|
||||
fclose(f);
|
||||
return ret;
|
||||
}
|
||||
fclose(f);
|
||||
|
@ -271,6 +272,7 @@ std::vector<DivSample*> DivEngine::sampleFromFile(const char* path) {
|
|||
delete sample;
|
||||
return ret;
|
||||
}
|
||||
fclose(f);
|
||||
BUSY_END;
|
||||
ret.push_back(sample);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue