diff options
author | nick_m <mainsbridge@gmail.com> | 2016-06-09 05:16:38 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-06-09 05:16:38 +1000 |
commit | 8de12a40158683c665fc0bf242b2fc150d3ad538 (patch) | |
tree | 5b0b672506983343620cd873ea333c9d1fbe498a /libs | |
parent | e27df63bc5ce4d3c65ad5df318a885af8e63a418 (diff) |
Possible fix for memory pool problem in session click.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/tempo.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index d46656c4c7..c39a78ff7f 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -2940,6 +2940,11 @@ TempoMap::get_grid (vector<TempoMap::BBTPoint>& points, if (cnt < 0.0) { cnt = 0.0; } + + if (frame_at_beat_locked (_metrics, cnt) >= upper) { + return; + } + while (pos < upper) { pos = frame_at_beat_locked (_metrics, cnt); const TempoSection tempo = tempo_section_at_frame_locked (_metrics, pos); |