From 11acb4ce4e596f3484a2c9312e24fed0d16eb046 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Tue, 23 Aug 2011 21:11:57 +0200 Subject: [PATCH 1/1] Get rid of one more invalid memory access --- lily/tie-performer.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lily/tie-performer.cc b/lily/tie-performer.cc index c53ddeac7b..85a0b07d74 100644 --- a/lily/tie-performer.cc +++ b/lily/tie-performer.cc @@ -110,8 +110,7 @@ Tie_performer::acknowledge_audio_element (Audio_element_info inf) // (*it).moment_ already stores the end of the tied note! Moment skip = now_mom () - (*it).end_moment_; an->tie_to (th, skip); - // this invalidates the iterator, we are leaving the loop anyway - heads_to_tie_.erase (it); + it = heads_to_tie_.erase (it); } } } -- 2.39.2