From 0b0bbed4e297f08302920586396b6bc7d630155f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 27 Sep 2003 18:18:05 +0000 Subject: don't use delete to free memory allocated by malloc svn-id: r10434 --- scumm/player_mod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3