diff options
author | Gregory Montoir | 2004-10-17 19:00:09 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-10-17 19:00:09 +0000 |
commit | b33f7b4b76495b08532989fe9cde9e49a1d08a95 (patch) | |
tree | 5389d5df8921f10f182d3b1bc50cc617202bcba6 /queen/command.cpp | |
parent | a41b8d22937396c10b913a0e9d58af311bccc5ad (diff) | |
download | scummvm-rg350-b33f7b4b76495b08532989fe9cde9e49a1d08a95.tar.gz scummvm-rg350-b33f7b4b76495b08532989fe9cde9e49a1d08a95.tar.bz2 scummvm-rg350-b33f7b4b76495b08532989fe9cde9e49a1d08a95.zip |
plugged some memory leaks
svn-id: r15591
Diffstat (limited to 'queen/command.cpp')
-rw-r--r-- | queen/command.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/queen/command.cpp b/queen/command.cpp index df93ab097c..bb9efe4d93 100644 --- a/queen/command.cpp +++ b/queen/command.cpp @@ -125,6 +125,14 @@ Command::Command(QueenEngine *vm) : _cmdText((vm->resource()->getLanguage() == HEBREW), CmdText::COMMAND_Y_POS, vm), _vm(vm) { } +Command::~Command() { + delete[] _cmdList; + delete[] _cmdArea; + delete[] _cmdObject; + delete[] _cmdInventory; + delete[] _cmdGameState; +} + void Command::clear(bool clearTexts) { debug(6, "Command::clear(%d)", clearTexts); _cmdText.clear(); |