diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/sound/wave_file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/sound/wave_file.cpp b/engines/titanic/sound/wave_file.cpp index c9205c76ac..e6232204e7 100644 --- a/engines/titanic/sound/wave_file.cpp +++ b/engines/titanic/sound/wave_file.cpp @@ -93,7 +93,7 @@ CWaveFile::~CWaveFile() { if (_disposeAudioBuffer == DisposeAfterUse::YES && _audioBuffer) delete _audioBuffer; - delete[] _waveData; + free(_waveData); } uint CWaveFile::getDurationTicks() const { @@ -117,7 +117,7 @@ bool CWaveFile::loadSound(const CString &name) { Common::SeekableReadStream *stream = file.readStream(); uint wavSize = stream->size(); - byte *data = new byte[wavSize]; + byte *data = (byte *)malloc(wavSize); stream->read(data, wavSize); load(data, wavSize); |