From: Reinhold Kainhofer Date: Tue, 23 Aug 2011 19:11:57 +0000 (+0200) Subject: Get rid of one more invalid memory access X-Git-Tag: release/2.15.9-1~9^2~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=11acb4ce4e596f3484a2c9312e24fed0d16eb046;p=lilypond.git Get rid of one more invalid memory access --- 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); } } }