mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-14 23:30:25 +02:00
Fixed bug where QFile.open(fd) exhausted by file handles by not specifying QFile::AutoCloseHandle option.
This commit is contained in:
parent
f6fa420cfd
commit
089053b45b
@ -231,7 +231,7 @@ bool RDWaveFile::openWave(RDWaveData *data)
|
|||||||
if((fd=open(wave_file_name.toUtf8(),O_RDONLY))<0) {
|
if((fd=open(wave_file_name.toUtf8(),O_RDONLY))<0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!wave_file.open(fd,QIODevice::ReadOnly)) {
|
if(!wave_file.open(fd,QIODevice::ReadOnly,QFile::AutoCloseHandle)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
switch(GetType(wave_file.handle())) {
|
switch(GetType(wave_file.handle())) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user