diff options
author | Denis Kasak | 2009-06-15 03:53:03 +0000 |
---|---|---|
committer | Denis Kasak | 2009-06-15 03:53:03 +0000 |
commit | a8c784245c1b5a277fdea098ff19c4bd53aac70c (patch) | |
tree | 4a604417a13da77f53d9f73e3d0a4b5adcc84542 | |
parent | ea3cf319388b01659e04a563314b0de81619fb9c (diff) | |
download | scummvm-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.cpp | 2 |
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(); } |