1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Require UndoManager to have empty history when destroying it...

...which is a justified assumption now.

Do not call ClearStates().  Do not attempt to repopulate ConnectionPtr if the
project is being destroyed.
This commit is contained in:
Paul Licameli
2020-09-05 16:04:43 -04:00
parent 49fc197e42
commit 7c9e824943
2 changed files with 3 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ UndoManager::UndoManager( AudacityProject &project )
UndoManager::~UndoManager()
{
ClearStates();
wxASSERT( stack.empty() );
}
namespace {