1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-10 22:56:26 +01:00

TrackPanel::mpClickedTrack is a safe weak_ptr

This commit is contained in:
Paul Licameli
2017-06-27 14:35:30 -04:00
parent 6684c7b9b0
commit e424f8e54e
2 changed files with 14 additions and 17 deletions

View File

@@ -527,7 +527,7 @@ protected:
wxSize vrulerSize;
protected:
Track *mpClickedTrack {};
std::weak_ptr<Track> mpClickedTrack;
// TrackPanel is not responsible for memory management:
UIHandle *mUIHandle {};