no need to close a file that will not be removed (and has no name)
This commit is contained in:
parent
89f5e22896
commit
729bc00f13
@ -37,8 +37,8 @@ class TmpFile : public SndfileWriter<T>, public SndfileReader<T>
|
|||||||
/* explicitly close first, some OS (yes I'm looking at you windows)
|
/* explicitly close first, some OS (yes I'm looking at you windows)
|
||||||
* cannot delet files that are still open
|
* cannot delet files that are still open
|
||||||
*/
|
*/
|
||||||
SndfileBase::close();
|
|
||||||
if (!filename.empty()) {
|
if (!filename.empty()) {
|
||||||
|
SndfileBase::close();
|
||||||
std::remove(filename.c_str());
|
std::remove(filename.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user