Fix heap-use-after-free when deleting tempo-markers
This commit is contained in:
parent
f4c978cf88
commit
c37d523b2e
@ -202,6 +202,9 @@ Editor::reset_tempo_marks ()
|
||||
TempoPoint const * prev_ts = 0;
|
||||
|
||||
for (auto & t : tempo_marks) {
|
||||
if (entered_marker == t) {
|
||||
entered_marker = 0;
|
||||
}
|
||||
delete t;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user