diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-04-29 15:01:28 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-04-29 15:01:33 -0400 |
commit | 729bc00f13fcad4ed986c3e5cf4565fd4ce0dead (patch) | |
tree | 5ff29455d53d2e82bf700b8ab2f407cc63e2a2a7 /libs/audiographer | |
parent | 89f5e228960f02eab860360542da3b8e1b7e3f97 (diff) |
no need to close a file that will not be removed (and has no name)
Diffstat (limited to 'libs/audiographer')
-rw-r--r-- | libs/audiographer/audiographer/sndfile/tmp_file.h | 2 |
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()); } } |