[Scummvm-cvs-logs] scummvm master -> e19656464c779558a8bc201cb97b924edcf91ea1

somaen einarjohants at gmail.com
Tue Jul 23 18:47:30 CEST 2013


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:
e19656464c WINTERMUTE: Set _scriptStream to nullptr after deletion


Commit: e19656464c779558a8bc201cb97b924edcf91ea1
    https://github.com/scummvm/scummvm/commit/e19656464c779558a8bc201cb97b924edcf91ea1
Author: Einar Johan Trøan Sømåen (einarjohants at gmail.com)
Date: 2013-07-23T09:39:50-07:00

Commit Message:
WINTERMUTE: Set _scriptStream to nullptr after deletion

(Clang static-analyzer issue)

Changed paths:
    engines/wintermute/base/scriptables/script.cpp



diff --git a/engines/wintermute/base/scriptables/script.cpp b/engines/wintermute/base/scriptables/script.cpp
index 1b945c2..0cffa94 100644
--- a/engines/wintermute/base/scriptables/script.cpp
+++ b/engines/wintermute/base/scriptables/script.cpp
@@ -461,6 +461,7 @@ void ScScript::cleanup() {
 	_parentScript = nullptr; // ref only
 
 	delete _scriptStream;
+	_scriptStream = nullptr;
 }
 
 






More information about the Scummvm-git-logs mailing list