diff options
Diffstat (limited to 'engines/voyeur/animation.cpp')
-rw-r--r-- | engines/voyeur/animation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/voyeur/animation.cpp b/engines/voyeur/animation.cpp index 7b5316b513..1f4e623976 100644 --- a/engines/voyeur/animation.cpp +++ b/engines/voyeur/animation.cpp @@ -329,7 +329,7 @@ RL2Decoder::RL2AudioTrack::~RL2AudioTrack() { void RL2Decoder::RL2AudioTrack::queueSound(Common::SeekableReadStream *stream, int size) { if (_audStream) { // Queue the sound data - byte *data = new byte[size]; + byte *data = (byte *)malloc(size); stream->read(data, size); Common::MemoryReadStream *memoryStream = new Common::MemoryReadStream(data, size, DisposeAfterUse::YES); |