13
0

Fix heap-use-after-free when deleting tempo-markers

This commit is contained in:
Robin Gareus 2024-08-29 16:05:56 +02:00
parent f4c978cf88
commit c37d523b2e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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;
}