Fixed bug where QFile.open(fd) exhausted by file handles by not specifying QFile::AutoCloseHandle option.

This commit is contained in:
Patrick Linstruth 2019-05-30 18:54:41 -07:00
parent f6fa420cfd
commit 089053b45b

View File

@ -231,7 +231,7 @@ bool RDWaveFile::openWave(RDWaveData *data)
if((fd=open(wave_file_name.toUtf8(),O_RDONLY))<0) {
return false;
}
if(!wave_file.open(fd,QIODevice::ReadOnly)) {
if(!wave_file.open(fd,QIODevice::ReadOnly,QFile::AutoCloseHandle)) {
return false;
}
switch(GetType(wave_file.handle())) {