From 60867811ccc6d0b7d0e5dbb4ad92883a9a59657c Mon Sep 17 00:00:00 2001 From: D G Turner Date: Mon, 16 Jan 2017 17:39:32 +0000 Subject: TITANIC: Fix Several Valgrind Warnings. --- engines/titanic/support/avi_surface.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp index 36a5891f0d..f8a6440be8 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() { -- cgit v1.2.3