diff options
Diffstat (limited to 'fix_audio_cache.patch')
-rw-r--r-- | fix_audio_cache.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fix_audio_cache.patch b/fix_audio_cache.patch index f91247d315c1..b744d119a5e8 100644 --- a/fix_audio_cache.patch +++ b/fix_audio_cache.patch @@ -20,12 +20,12 @@ index f2ebfa261..4025dac11 100644 } public: -@@ -150,8 +150,16 @@ +@@ -150,8 +149,16 @@ } - + // Remove old entries until we're under the max size -- for (auto it = age.rbegin(); size > max_size && it != age.rend(); ) -- KillMacroBlock(**it++); +- for (auto it = age.rbegin(); size > max_size && it != age.rend(); it++) +- KillMacroBlock(**it); + auto it = age.end(); + while (size > max_size) { + if (it == age.begin()) @@ -37,5 +37,5 @@ index f2ebfa261..4025dac11 100644 + while (it != age.end()) + it = age.erase(it); } - - /// @brief Obtain a data block from the cache + + /// @brief Obtain a data block from the cache
\ No newline at end of file |