aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Kasak2009-06-15 03:53:03 +0000
committerDenis Kasak2009-06-15 03:53:03 +0000
commita8c784245c1b5a277fdea098ff19c4bd53aac70c (patch)
tree4a604417a13da77f53d9f73e3d0a4b5adcc84542
parentea3cf319388b01659e04a563314b0de81619fb9c (diff)
downloadscummvm-rg350-a8c784245c1b5a277fdea098ff19c4bd53aac70c.tar.gz
scummvm-rg350-a8c784245c1b5a277fdea098ff19c4bd53aac70c.tar.bz2
scummvm-rg350-a8c784245c1b5a277fdea098ff19c4bd53aac70c.zip
Fixed a memory leak in BArchive::openArchive(). A buffer wasn't being freed.
svn-id: r41535
-rw-r--r--engines/draci/barchive.cpp2
1 files changed, 2 insertions, 0 deletions
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();
}