mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
no need to close a file that will not be removed (and has no name)
This commit is contained in:
parent
89f5e22896
commit
729bc00f13
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue