diff options
author | Max Horn | 2003-09-27 18:18:05 +0000 |
---|---|---|
committer | Max Horn | 2003-09-27 18:18:05 +0000 |
commit | 0b0bbed4e297f08302920586396b6bc7d630155f (patch) | |
tree | 16bf24569d7865a2e8feb5db6ba81bbf7f076fae | |
parent | d87f65ff06f6c35e238ed2e57ee29441036adb81 (diff) | |
download | scummvm-rg350-0b0bbed4e297f08302920586396b6bc7d630155f.tar.gz scummvm-rg350-0b0bbed4e297f08302920586396b6bc7d630155f.tar.bz2 scummvm-rg350-0b0bbed4e297f08302920586396b6bc7d630155f.zip |
don't use delete to free memory allocated by malloc
svn-id: r10434
-rw-r--r-- | scumm/player_mod.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/player_mod.cpp b/scumm/player_mod.cpp index c5996828c5..e3ce42a3df 100644 --- a/scumm/player_mod.cpp +++ b/scumm/player_mod.cpp @@ -104,7 +104,7 @@ void Player_MOD::stopChannel(int id) { error("player_mod - attempted to stop channel id 0"); for (int i = 0; i < MOD_MAXCHANS; i++) { if (_channels[i].id == id) { - delete _channels[i].ptr; + free(_channels[i].ptr); _channels[i].ptr = NULL; delete _channels[i].converter; _channels[i].converter = NULL; |