From 089053b45b0509127cc61264c3b07147fa17e6b5 Mon Sep 17 00:00:00 2001 From: Patrick Linstruth Date: Thu, 30 May 2019 18:54:41 -0700 Subject: [PATCH 1/2] Fixed bug where QFile.open(fd) exhausted by file handles by not specifying QFile::AutoCloseHandle option. --- lib/rdwavefile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdwavefile.cpp b/lib/rdwavefile.cpp index 4687e8d3..51d140ff 100644 --- a/lib/rdwavefile.cpp +++ b/lib/rdwavefile.cpp @@ -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())) { From 60eb4fdcf176201eeff72fcd82ef4de3446d7a96 Mon Sep 17 00:00:00 2001 From: Patrick Linstruth Date: Thu, 30 May 2019 18:57:29 -0700 Subject: [PATCH 2/2] Updated ChangeLog --- ChangeLog | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2e5566e0..97a1236d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18696,3 +18696,5 @@ 2019-05-24 Fred Gleason * Fixed a regression in rdgpimon(1) that caused GPIO status to fail to be displayed in the status widgets. +2019-05-30 Patrick Linstruth + * Fixed bug in 'RDWaveFile' class that exhausted file handles.