[Scummvm-git-logs] scummvm master -> 895e6a8d47cd24b3fc0d8ef6e5085e684d5d05d0

whoozle noreply at scummvm.org
Fri Mar 6 21:05:24 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:
895e6a8d47 PHOENIXVR: use ScopedPtr to release movie stream


Commit: 895e6a8d47cd24b3fc0d8ef6e5085e684d5d05d0
    https://github.com/scummvm/scummvm/commit/895e6a8d47cd24b3fc0d8ef6e5085e684d5d05d0
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-03-06T21:04:46Z

Commit Message:
PHOENIXVR: use ScopedPtr to release movie stream

Changed paths:
    engines/phoenixvr/phoenixvr.cpp


diff --git a/engines/phoenixvr/phoenixvr.cpp b/engines/phoenixvr/phoenixvr.cpp
index a65991a10fe..a71f30b3b65 100644
--- a/engines/phoenixvr/phoenixvr.cpp
+++ b/engines/phoenixvr/phoenixvr.cpp
@@ -311,12 +311,12 @@ void PhoenixVREngine::playMovie(const Common::String &movie) {
 	debug("playMovie %s", movie.c_str());
 	Video::FourXMDecoder dec;
 
-	auto *stream = open(movie);
+	Common::ScopedPtr<Common::SeekableReadStream> stream(open(movie));
 	if (!stream) {
 		warning("can't load movie %s", movie.c_str());
 		return;
 	}
-	if (dec.loadStream(stream)) {
+	if (dec.loadStream(stream.get())) {
 		dec.start();
 
 		bool playing = true;
@@ -351,8 +351,8 @@ void PhoenixVREngine::playMovie(const Common::String &movie) {
 	} else {
 		warning("playMovie %s failed", movie.c_str());
 	}
-	delete stream;
 }
+
 void PhoenixVREngine::playAnimation(const Common::String &name, const Common::String &var, int varValue, float speed) {
 	_vr.playAnimation(name, var, varValue, speed);
 }




More information about the Scummvm-git-logs mailing list