mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 12:12:23 +01:00
Strong safety guarantee for removing file dependencies
This commit is contained in:
@@ -116,6 +116,7 @@ unsigned long BlockFile::gBlockFileDestructionCount { 0 };
|
||||
BlockFile::~BlockFile()
|
||||
{
|
||||
if (!IsLocked() && mFileName.HasName())
|
||||
// PRL: what should be done if this fails?
|
||||
wxRemoveFile(mFileName.GetFullPath());
|
||||
|
||||
++gBlockFileDestructionCount;
|
||||
|
||||
Reference in New Issue
Block a user