1
0
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:
Paul Licameli
2016-11-24 10:04:40 -05:00
parent 7159966eb4
commit f5fe9281e4
2 changed files with 22 additions and 19 deletions

View File

@@ -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;