diff options
author | Paweł Kołodziejski | 2004-11-19 22:53:20 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2004-11-19 22:53:20 +0000 |
commit | 5748227adcc17e76eab0c33e99bb978b170b3de0 (patch) | |
tree | 5764fa4b2f2c8e4e88a32da887b5624c28f84acf | |
parent | a7b7a281f1759a96b39195f0885bb5de25471404 (diff) | |
download | scummvm-rg350-5748227adcc17e76eab0c33e99bb978b170b3de0.tar.gz scummvm-rg350-5748227adcc17e76eab0c33e99bb978b170b3de0.tar.bz2 scummvm-rg350-5748227adcc17e76eab0c33e99bb978b170b3de0.zip |
missed destroy object after last changes
svn-id: r15843
-rw-r--r-- | gui/walkthrough.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/walkthrough.cpp b/gui/walkthrough.cpp index 88052c7600..a65d35320c 100644 --- a/gui/walkthrough.cpp +++ b/gui/walkthrough.cpp @@ -64,8 +64,10 @@ bool WalkthroughDialog::loadWalkthroughText() { sprintf(filename, "%s.wkt", _gameName); file->open(filename); - if (!file->isOpen()) + if (!file->isOpen()) { + delete file; return false; + } int bufferSize = file->size(); byte *buffer = (byte *)malloc(bufferSize); file->read(buffer, bufferSize); |