[Scummvm-git-logs] scummvm master -> c188fd91304d0f75933ac53bf356647075650f6c
dreammaster
dreammaster at scummvm.org
Tue Sep 26 02:45:38 CEST 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:
c188fd9130 TITANIC: Add missing destructor for TTsentenceConcept
Commit: c188fd91304d0f75933ac53bf356647075650f6c
https://github.com/scummvm/scummvm/commit/c188fd91304d0f75933ac53bf356647075650f6c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-09-25T20:45:27-04:00
Commit Message:
TITANIC: Add missing destructor for TTsentenceConcept
Changed paths:
engines/titanic/true_talk/tt_concept_node.h
engines/titanic/true_talk/tt_sentence.cpp
engines/titanic/true_talk/tt_sentence.h
diff --git a/engines/titanic/true_talk/tt_concept_node.h b/engines/titanic/true_talk/tt_concept_node.h
index 9a1c3a9..9676253 100644
--- a/engines/titanic/true_talk/tt_concept_node.h
+++ b/engines/titanic/true_talk/tt_concept_node.h
@@ -43,6 +43,7 @@ public:
public:
TTconceptNode();
TTconceptNode(const TTconceptNode &src);
+ virtual ~TTconceptNode() {}
/**
* Delete any sibling chain attached to this node
diff --git a/engines/titanic/true_talk/tt_sentence.cpp b/engines/titanic/true_talk/tt_sentence.cpp
index b20f760..a1cf261 100644
--- a/engines/titanic/true_talk/tt_sentence.cpp
+++ b/engines/titanic/true_talk/tt_sentence.cpp
@@ -27,6 +27,11 @@
namespace Titanic {
+TTsentenceConcept::~TTsentenceConcept() {
+ for (int idx = 0; idx < 5; ++idx)
+ delete _concepts[idx];
+}
+
TTsentenceConcept *TTsentenceConcept::addSibling() {
if (_nextP != nullptr)
// This should never happen
diff --git a/engines/titanic/true_talk/tt_sentence.h b/engines/titanic/true_talk/tt_sentence.h
index cbaef26..01a0346 100644
--- a/engines/titanic/true_talk/tt_sentence.h
+++ b/engines/titanic/true_talk/tt_sentence.h
@@ -39,6 +39,7 @@ class TTsentenceConcept : public TTconceptNode {
public:
TTsentenceConcept() : TTconceptNode() {}
TTsentenceConcept(const TTsentenceConcept &src) : TTconceptNode(src) {}
+ virtual ~TTsentenceConcept();
/**
* Adds a new sibling instance
More information about the Scummvm-git-logs
mailing list