1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-26 17:18:41 +02:00

Revert "Fix unbalanced event handler push/pop"

This reverts commit 8ac5699fcd625c102eacc3058ab748d3c5860006.
This commit is contained in:
Paul Licameli 2020-02-21 12:42:24 -05:00
parent 80662a1b60
commit d06625ba60
2 changed files with 4 additions and 0 deletions

View File

@ -271,6 +271,7 @@ static const AudacityProject::AttachedObjects::RegisteredFactory sForwarderKey{
[]( AudacityProject &parent ){ []( AudacityProject &parent ){
auto result = std::make_shared< ScrubForwarder >( parent ); auto result = std::make_shared< ScrubForwarder >( parent );
auto &window = ProjectWindow::Get( parent ); auto &window = ProjectWindow::Get( parent );
window.PushEventHandler( result.get() );
return result; return result;
} }
}; };

View File

@ -241,6 +241,9 @@ Scrubber::~Scrubber()
if (mpThread) if (mpThread)
mpThread->Delete(); mpThread->Delete();
#endif #endif
if ( mWindow )
mWindow->PopEventHandler();
} }
static const auto HasWaveDataPred = static const auto HasWaveDataPred =