[Scummvm-git-logs] scummvm master -> a03095491337a4b020b97076a3fb65e8a94ac28c

eriktorbjorn noreply at scummvm.org
Sat May 23 11:02:36 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
a030954913 ACCESS: Fix new/free mismatch in video player


Commit: a03095491337a4b020b97076a3fb65e8a94ac28c
    https://github.com/scummvm/scummvm/commit/a03095491337a4b020b97076a3fb65e8a94ac28c
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2026-05-23T13:01:31+02:00

Commit Message:
ACCESS: Fix new/free mismatch in video player

The memory is freed with free() in memstream.h, so it should be
allocated with malloc(), not new.

Changed paths:
    engines/access/video.cpp


diff --git a/engines/access/video.cpp b/engines/access/video.cpp
index 20e89093037..bd468a05ab8 100644
--- a/engines/access/video.cpp
+++ b/engines/access/video.cpp
@@ -457,7 +457,7 @@ void VideoPlayer_v2::handleSoundChunk(bool init) {
 	}
 
 	uint16 soundSize = _videoData->_stream->readUint16LE();
-	byte *soundData = new byte[soundSize];
+	byte *soundData = (byte *)malloc(soundSize);
 
 	_videoData->_stream->read(soundData, soundSize);
 




More information about the Scummvm-git-logs mailing list