mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
don't use delete to free memory allocated by malloc
svn-id: r10434
This commit is contained in:
parent
d87f65ff06
commit
0b0bbed4e2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user