don't use delete to free memory allocated by malloc

svn-id: r10434
This commit is contained in:
Max Horn 2003-09-27 18:18:05 +00:00
parent d87f65ff06
commit 0b0bbed4e2

View File

@ -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;