mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-19 17:40:15 +02:00
Fix crash reported by Steve
Steps to reproduce: 1) Launch Audacity 2) File > New 3) Generate a sound in the new project 4) Open a LADSPA effect 5) In second project: File > Close, don't save changes. 6) In first project, generate a sound. 7) Click "Play" button - crash :-(
This commit is contained in:
parent
f60afbb8da
commit
ea112bddc1
@ -2192,6 +2192,19 @@ EffectUIHost::~EffectUIHost()
|
||||
{
|
||||
if (mInitialized)
|
||||
{
|
||||
mInitialized = false;
|
||||
|
||||
wxTheApp->Disconnect(EVT_AUDIOIO_PLAYBACK,
|
||||
wxCommandEventHandler(EffectUIHost::OnPlayback),
|
||||
NULL,
|
||||
this);
|
||||
|
||||
wxTheApp->Disconnect(EVT_AUDIOIO_CAPTURE,
|
||||
wxCommandEventHandler(EffectUIHost::OnCapture),
|
||||
NULL,
|
||||
this);
|
||||
|
||||
EffectManager::Get().RealtimeRemoveEffect(mEffect);
|
||||
}
|
||||
|
||||
if (mClient)
|
||||
|
Loading…
x
Reference in New Issue
Block a user