diff options
author | Tobia Tesan | 2017-04-30 13:17:25 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-05-02 21:01:23 +0100 |
commit | fca74091c3b48e03d0725f1193d157094434d437 (patch) | |
tree | f57e08cfc3a4a8bcbb949131553618c5dfecb01c /engines | |
parent | e69855acef229e29f04f09f3c170a3be8f36a720 (diff) | |
download | scummvm-rg350-fca74091c3b48e03d0725f1193d157094434d437.tar.gz scummvm-rg350-fca74091c3b48e03d0725f1193d157094434d437.tar.bz2 scummvm-rg350-fca74091c3b48e03d0725f1193d157094434d437.zip |
DIRECTOR: Delete Stxts in ~Score
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/score.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index be36011ead..65a343910d 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -192,7 +192,6 @@ void Score::loadArchive() { loadScriptText(*_movieArchive->getResource(MKTAG('S','T','X','T'), *iterator)); // Load STXTS - // TODO: make sure the Stxt is eventually destroyed _loadedStxts->setVal(*iterator, new Stxt(*_movieArchive->getResource(MKTAG('S','T','X','T'), *iterator)) @@ -284,6 +283,7 @@ Score::~Score() { delete _font; delete _labels; + delete _loadedStxts; } void Score::loadPalette(Common::SeekableSubReadStreamEndian &stream) { |