Skip to content

Commit

Permalink
KYRA: (AdLib Driver) - fix invalid memory write issue
Browse files Browse the repository at this point in the history
  • Loading branch information
athrxx authored and Johannes Schickel committed Dec 26, 2011
1 parent 77a81a8 commit f2a1ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/kyra/sound_adlib.cpp
Expand Up @@ -524,7 +524,7 @@ void AdLibDriver::setSoundData(uint8 *data) {

if (_soundData) {
delete[] _soundData;
_soundData = 0;
_soundData = _sfxPointer = 0;
}

_soundData = data;
Expand Down

0 comments on commit f2a1ff3

Please sign in to comment.