diff options
author | Torbjörn Andersson | 2010-01-19 20:41:51 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-01-19 20:41:51 +0000 |
commit | 428f8d6955202a238ea7a8e887d707503a487449 (patch) | |
tree | 7df5bc2dabc63f55e94a79f7396007aee5e627e3 /engines/lure/lure.cpp | |
parent | f0e6c3f14204aec1d34860b0595495dbfd505b48 (diff) | |
download | scummvm-rg350-428f8d6955202a238ea7a8e887d707503a487449.tar.gz scummvm-rg350-428f8d6955202a238ea7a8e887d707503a487449.tar.bz2 scummvm-rg350-428f8d6955202a238ea7a8e887d707503a487449.zip |
Fixed some cppcheck warnings.
svn-id: r47393
Diffstat (limited to 'engines/lure/lure.cpp')
-rw-r--r-- | engines/lure/lure.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/lure/lure.cpp b/engines/lure/lure.cpp index 8e8dd27fee..7ab9a0be60 100644 --- a/engines/lure/lure.cpp +++ b/engines/lure/lure.cpp @@ -134,8 +134,10 @@ Common::Error LureEngine::go() { CopyProtectionDialog *dialog = new CopyProtectionDialog(); bool result = dialog->show(); delete dialog; - if (shouldQuit()) + if (shouldQuit()) { + delete gameInstance; return Common::kNoError; + } if (!result) error("Sorry - copy protection failed"); |