diff options
author | Colin Snover | 2017-11-12 10:16:34 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | 72a42927279a8b740cd0bb5a8053def4a465f2dd (patch) | |
tree | 81ad3321e6e6898c19d4d26c1c3ae64bcbc536c4 /engines/fullpipe/scenes.cpp | |
parent | 8f1d76d2616489924f472815f91107cd46d479de (diff) | |
download | scummvm-rg350-72a42927279a8b740cd0bb5a8053def4a465f2dd.tar.gz scummvm-rg350-72a42927279a8b740cd0bb5a8053def4a465f2dd.tar.bz2 scummvm-rg350-72a42927279a8b740cd0bb5a8053def4a465f2dd.zip |
FULLPIPE: Improve memory safety and fix leaks in sound code
Diffstat (limited to 'engines/fullpipe/scenes.cpp')
-rw-r--r-- | engines/fullpipe/scenes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp index bb141d98c4..7825a1eb2d 100644 --- a/engines/fullpipe/scenes.cpp +++ b/engines/fullpipe/scenes.cpp @@ -577,7 +577,7 @@ bool FullpipeEngine::sceneSwitcher(EntranceInfo *entrance) { _currSoundList1[1] = scene->_soundList; for (int i = 0; i < scene->_soundList->getCount(); i++) { - scene->_soundList->getSoundByIndex(i)->updateVolume(); + scene->_soundList->getSoundByIndex(i).updateVolume(); } } else { _currSoundListCount = 1; |