summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-04-29 15:01:28 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-04-29 15:01:33 -0400
commit729bc00f13fcad4ed986c3e5cf4565fd4ce0dead (patch)
tree5ff29455d53d2e82bf700b8ab2f407cc63e2a2a7 /libs
parent89f5e228960f02eab860360542da3b8e1b7e3f97 (diff)
no need to close a file that will not be removed (and has no name)
Diffstat (limited to 'libs')
-rw-r--r--libs/audiographer/audiographer/sndfile/tmp_file.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/audiographer/audiographer/sndfile/tmp_file.h b/libs/audiographer/audiographer/sndfile/tmp_file.h
index 8ea676c0d5..24caf5a723 100644
--- a/libs/audiographer/audiographer/sndfile/tmp_file.h
+++ b/libs/audiographer/audiographer/sndfile/tmp_file.h
@@ -37,8 +37,8 @@ class TmpFile : public SndfileWriter<T>, public SndfileReader<T>
/* explicitly close first, some OS (yes I'm looking at you windows)
* cannot delet files that are still open
*/
- SndfileBase::close();
if (!filename.empty()) {
+ SndfileBase::close();
std::remove(filename.c_str());
}
}