[Scummvm-git-logs] scummvm master -> 60867811ccc6d0b7d0e5dbb4ad92883a9a59657c

digitall dgturner at iee.org
Mon Jan 16 18:33:03 CET 2017


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

Summary:
60867811cc TITANIC: Fix Several Valgrind Warnings.


Commit: 60867811ccc6d0b7d0e5dbb4ad92883a9a59657c
    https://github.com/scummvm/scummvm/commit/60867811ccc6d0b7d0e5dbb4ad92883a9a59657c
Author: D G Turner (digitall at scummvm.org)
Date: 2017-01-16T17:39:32Z

Commit Message:
TITANIC: Fix Several Valgrind Warnings.

Changed paths:
    engines/titanic/support/avi_surface.cpp


diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp
index 36a5891..f8a6440 100644
--- a/engines/titanic/support/avi_surface.cpp
+++ b/engines/titanic/support/avi_surface.cpp
@@ -47,6 +47,7 @@ AVISurface::AVISurface(const CResourceKey &key) : _movieName(key.getString()) {
 	// since it needs to be able to go beyond the frame count or to negative to allow
 	// correct detection of when range playbacks have finished
 	_currentFrame = -1;
+	_priorFrame = -1;
 	_isReversed = false;
 
 	// Create a decoder
@@ -55,6 +56,10 @@ AVISurface::AVISurface(const CResourceKey &key) : _movieName(key.getString()) {
 		error("Could not open video - %s", key.getString().c_str());
 
 	_streamCount = _decoder->videoTrackCount();
+
+	_soundManager = nullptr;
+	_hasAudio = false;
+	_frameRate = 0.0;
 }
 
 AVISurface::~AVISurface() {





More information about the Scummvm-git-logs mailing list