diff options
-rw-r--r-- | engines/scumm/imuse_digi/dimuse_bndmgr.cpp | 2 | ||||
-rw-r--r-- | engines/scumm/imuse_digi/dimuse_sndmgr.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/imuse_digi/dimuse_bndmgr.cpp b/engines/scumm/imuse_digi/dimuse_bndmgr.cpp index be5f7623ca..3ae6f7e919 100644 --- a/engines/scumm/imuse_digi/dimuse_bndmgr.cpp +++ b/engines/scumm/imuse_digi/dimuse_bndmgr.cpp @@ -281,7 +281,7 @@ int32 BundleMgr::decompressSampleByIndex(int32 index, int32 offset, int32 size, lastBlock = _numCompItems - 1; int32 blocksFinalSize = 0x2000 * (1 + lastBlock - firstBlock); - *compFinal = new byte[blocksFinalSize]; + *compFinal = (byte *)malloc(blocksFinalSize); assert(*compFinal); finalSize = 0; diff --git a/engines/scumm/imuse_digi/dimuse_sndmgr.cpp b/engines/scumm/imuse_digi/dimuse_sndmgr.cpp index 8b11c0aadd..24cac8707b 100644 --- a/engines/scumm/imuse_digi/dimuse_sndmgr.cpp +++ b/engines/scumm/imuse_digi/dimuse_sndmgr.cpp @@ -464,7 +464,7 @@ ImuseDigiSndMgr::SoundDesc *ImuseDigiSndMgr::openSound(int32 soundId, const char sound->disk = _disk; prepareSound(ptr, sound); if ((soundType == IMUSE_BUNDLE) && !sound->compressed) { - delete[] ptr; + free(ptr); } return sound; } |