mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-04 10:17: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!");
|
logW("did not read entire sample bank file buffer!");
|
||||||
lastError=_("did not read entire sample bank file!");
|
lastError=_("did not read entire sample bank file!");
|
||||||
delete[] buf;
|
delete[] buf;
|
||||||
|
fclose(f);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
@ -271,6 +272,7 @@ std::vector<DivSample*> DivEngine::sampleFromFile(const char* path) {
|
||||||
delete sample;
|
delete sample;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
fclose(f);
|
||||||
BUSY_END;
|
BUSY_END;
|
||||||
ret.push_back(sample);
|
ret.push_back(sample);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue