mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
SHERLOCK: Fix Coverity warnings
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -909,13 +909,13 @@ int TattooJournal::getFindName(bool printError) {
|
||||
|
||||
if (events._released || events._rightReleased) {
|
||||
switch (_selector) {
|
||||
case SB_CANCEL:
|
||||
case (int)SB_CANCEL:
|
||||
done = -1;
|
||||
break;
|
||||
case SB_BACKWARDS:
|
||||
case (int)SB_BACKWARDS:
|
||||
done = 2;
|
||||
break;
|
||||
case SB_FORWARDS:
|
||||
case (int)SB_FORWARDS:
|
||||
done = 1;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user