aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/lure.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-01-19 20:41:51 +0000
committerTorbjörn Andersson2010-01-19 20:41:51 +0000
commit428f8d6955202a238ea7a8e887d707503a487449 (patch)
tree7df5bc2dabc63f55e94a79f7396007aee5e627e3 /engines/lure/lure.cpp
parentf0e6c3f14204aec1d34860b0595495dbfd505b48 (diff)
downloadscummvm-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.cpp4
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");