diff --git a/src/GraphDisplay.cpp b/src/GraphDisplay.cpp index 8e6248cc1c..5a8327964a 100644 --- a/src/GraphDisplay.cpp +++ b/src/GraphDisplay.cpp @@ -156,8 +156,10 @@ GraphDisplay::GraphDisplay() GraphDisplay::~GraphDisplay() { - FOREACH( Actor*, m_vpSongBoundaries, p ) - SAFE_DELETE( *p ); + for (Actor *p : m_vpSongBoundaries) + { + SAFE_DELETE( p ); + } m_vpSongBoundaries.clear(); SAFE_DELETE( m_pGraphLine ); SAFE_DELETE( m_pGraphBody );