From a8c784245c1b5a277fdea098ff19c4bd53aac70c Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Mon, 15 Jun 2009 03:53:03 +0000 Subject: Fixed a memory leak in BArchive::openArchive(). A buffer wasn't being freed. svn-id: r41535 --- engines/draci/barchive.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/draci/barchive.cpp') diff --git a/engines/draci/barchive.cpp b/engines/draci/barchive.cpp index c3117cd0f2..df527221cd 100644 --- a/engines/draci/barchive.cpp +++ b/engines/draci/barchive.cpp @@ -220,6 +220,8 @@ void BArchive::openArchive(const Common::String &path) { // Last footer item should be equal to footerOffset assert(reader.readUint32LE() == footerOffset && "Footer offset mismatch"); + delete[] footer; + f.close(); } -- cgit v1.2.3