diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index 27eae35ecd..a6304f29f6 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -2454,6 +2454,12 @@ TempoMap::gui_move_meter (MeterSection* ms, const framepos_t& frame) } } + Metrics::const_iterator d = future_map.begin(); + while (d != future_map.end()) { + delete (*d); + ++d; + } + MetricPositionChanged (); // Emit Signal } @@ -2469,6 +2475,12 @@ TempoMap::gui_move_meter (MeterSection* ms, const double& pulse) } } + Metrics::const_iterator d = future_map.begin(); + while (d != future_map.end()) { + delete (*d); + ++d; + } + MetricPositionChanged (); // Emit Signal }