openal: fix leak of sound data when uncache_sound on stream

This is an addendum to cd2ea97b1ffb65512f5ee8ba0665f46345ef7795 (fix for #428) which did
not properly delete the SoundData when uncaching sounds that were loaded as streams.
This commit is contained in:
rdb 2018-11-27 21:11:57 +01:00
parent 5dd0db300b
commit 7ed9655e06

View File

@ -553,6 +553,7 @@ uncache_sound(const Filename &file_name) {
if (sd->_movie->get_filename() == path || if (sd->_movie->get_filename() == path ||
sd->_movie->get_filename() == file_name) { sd->_movie->get_filename() == file_name) {
exqi = _expiring_streams.erase(exqi); exqi = _expiring_streams.erase(exqi);
delete sd;
continue; continue;
} }
} }