diff options
Diffstat (limited to 'src/audio_core/device/audio_buffers.h')
-rw-r--r-- | src/audio_core/device/audio_buffers.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/audio_core/device/audio_buffers.h b/src/audio_core/device/audio_buffers.h index 5d8ed0ef7..9e84a9c05 100644 --- a/src/audio_core/device/audio_buffers.h +++ b/src/audio_core/device/audio_buffers.h @@ -146,7 +146,11 @@ public: break; } - tags[released++] = tag; + if (released < tags.size()) { + tags[released] = tag; + } + + released++; if (released >= tags.size()) { break; |