From 23729c206396e336cc83198f67b108dc3b315b21 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 25 Sep 2011 09:09:54 +1000 Subject: TSAGE: Fix Valgrind warnings --- engines/tsage/detection.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/tsage/detection.cpp') diff --git a/engines/tsage/detection.cpp b/engines/tsage/detection.cpp index f12efc02e8..8a4b834f46 100644 --- a/engines/tsage/detection.cpp +++ b/engines/tsage/detection.cpp @@ -131,6 +131,8 @@ public: if (in) { if (TsAGE::Saver::readSavegameHeader(in, header)) { saveList.push_back(SaveStateDescriptor(slot, header.saveName)); + + header.thumbnail->free(); delete header.thumbnail; } -- cgit v1.2.3