1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-08 09:27:11 +01:00

Bug2004: Opening Mixer Board with a Note track crashed...

... Just one null check was needed, but I also add another, and use a
wxWeakRef pointer, for more safety.
This commit is contained in:
Paul Licameli
2018-10-06 11:20:30 -04:00
parent e6e4f44c81
commit 3f928a25b0
2 changed files with 5 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ private:
#ifdef EXPERIMENTAL_MIDI_OUT
MixerTrackSlider* mSlider_Velocity;
#endif
MeterPanel* mMeter;
wxWeakRef<MeterPanel> mMeter;
public:
DECLARE_EVENT_TABLE()