aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scalpel
diff options
context:
space:
mode:
authorPaul Gilbert2015-09-10 20:48:40 -0400
committerPaul Gilbert2015-09-10 20:48:40 -0400
commit61bb7cc8ed55c506ac1b02cf6498bfca17ca4b60 (patch)
tree23184e06119cbf25bc3d72b2f096cb2744e0ba73 /engines/sherlock/scalpel
parent1b60e55fe81a390a9810258ccd96a5349a10c9aa (diff)
downloadscummvm-rg350-61bb7cc8ed55c506ac1b02cf6498bfca17ca4b60.tar.gz
scummvm-rg350-61bb7cc8ed55c506ac1b02cf6498bfca17ca4b60.tar.bz2
scummvm-rg350-61bb7cc8ed55c506ac1b02cf6498bfca17ca4b60.zip
SHERLOCK: Fix Coverity warnings
Diffstat (limited to 'engines/sherlock/scalpel')
-rw-r--r--engines/sherlock/scalpel/scalpel.cpp4
-rw-r--r--engines/sherlock/scalpel/tsage/logo.cpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/sherlock/scalpel/scalpel.cpp b/engines/sherlock/scalpel/scalpel.cpp
index 2bb90f7af5..b3531e86bb 100644
--- a/engines/sherlock/scalpel/scalpel.cpp
+++ b/engines/sherlock/scalpel/scalpel.cpp
@@ -1229,6 +1229,8 @@ void ScalpelEngine::showScummVMSaveDialog() {
saveGameState(slot, desc);
}
+
+ delete dialog;
}
void ScalpelEngine::showScummVMRestoreDialog() {
@@ -1238,6 +1240,8 @@ void ScalpelEngine::showScummVMRestoreDialog() {
if (slot >= 0) {
loadGameState(slot);
}
+
+ delete dialog;
}
bool ScalpelEngine::play3doMovie(const Common::String &filename, const Common::Point &pos, bool halfSize) {
diff --git a/engines/sherlock/scalpel/tsage/logo.cpp b/engines/sherlock/scalpel/tsage/logo.cpp
index 64539b941a..014470dcc8 100644
--- a/engines/sherlock/scalpel/tsage/logo.cpp
+++ b/engines/sherlock/scalpel/tsage/logo.cpp
@@ -423,6 +423,7 @@ Logo::Logo(ScalpelEngine *vm) : _vm(vm), _lib("sf3.rlb") {
// Initialize counter
_counter = 0;
+ _frameCounter = 0;
// Initialize wait frame counters
_waitFrames = 0;