Skip to content

Commit 7ed9655

Browse files
committed
openal: fix leak of sound data when uncache_sound on stream
This is an addendum to cd2ea97 (fix for panda3d#428) which did not properly delete the SoundData when uncaching sounds that were loaded as streams.
1 parent 5dd0db3 commit 7ed9655

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

panda/src/audiotraits/openalAudioManager.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ uncache_sound(const Filename &file_name) {
553553
if (sd->_movie->get_filename() == path ||
554554
sd->_movie->get_filename() == file_name) {
555555
exqi = _expiring_streams.erase(exqi);
556+
delete sd;
556557
continue;
557558
}
558559
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy