From 72eb9ec9eab5efcb3aa99a962a80423e8c0a3232 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 3 Jan 2010 19:37:43 +0000 Subject: Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null before freeing it, which isn't necessary. svn-id: r46941 --- engines/cruise/detection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/cruise/detection.cpp') diff --git a/engines/cruise/detection.cpp b/engines/cruise/detection.cpp index d6095092ac..5fc96ffff2 100644 --- a/engines/cruise/detection.cpp +++ b/engines/cruise/detection.cpp @@ -262,7 +262,7 @@ SaveStateList CruiseMetaEngine::listSaves(const char *target) const { Cruise::CruiseSavegameHeader header; Cruise::readSavegameHeader(in, header); saveList.push_back(SaveStateDescriptor(slotNum, header.saveName)); - if (header.thumbnail) delete header.thumbnail; + delete header.thumbnail; delete in; } } -- cgit v1.2.3