From b9a751427823d3cb67dcc8560348ed693e421c3f Mon Sep 17 00:00:00 2001 From: Azdul Date: Thu, 17 Jan 2019 07:08:25 +0100 Subject: [PATCH] Memory leak fixed. Proper file names in headers. --- components/bsa/memorystream.hpp | 2 +- components/bsa/tes4bsa_file.hpp | 2 +- components/vfs/bsaarchive.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/bsa/memorystream.hpp b/components/bsa/memorystream.hpp index aed39e6d6..0182e901a 100644 --- a/components/bsa/memorystream.hpp +++ b/components/bsa/memorystream.hpp @@ -4,7 +4,7 @@ Email: < korslund@gmail.com > WWW: http://openmw.sourceforge.net/ - This file (memorystream.h) is part of the OpenMW package. + This file (memorystream.hpp) is part of the OpenMW package. OpenMW is distributed as free software: you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/components/bsa/tes4bsa_file.hpp b/components/bsa/tes4bsa_file.hpp index 53a08ffc5..b2c125b62 100644 --- a/components/bsa/tes4bsa_file.hpp +++ b/components/bsa/tes4bsa_file.hpp @@ -4,7 +4,7 @@ Email: < korslund@gmail.com > WWW: http://openmw.sourceforge.net/ - This file (tes4bsa_file.h) is part of the OpenMW package. + This file (tes4bsa_file.hpp) is part of the OpenMW package. OpenMW is distributed as free software: you can redistribute it and/or modify it under the terms of the GNU General Public License diff --git a/components/vfs/bsaarchive.cpp b/components/vfs/bsaarchive.cpp index 5b9aad437..b55082386 100644 --- a/components/vfs/bsaarchive.cpp +++ b/components/vfs/bsaarchive.cpp @@ -7,7 +7,7 @@ namespace VFS BsaArchive::BsaArchive(const std::string &filename) { - mFile = new Bsa::BSAFile(); + mFile = nullptr; Bsa::BsaVersion bsaVersion = Bsa::TES4BSAFile::detectVersion(filename);