diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-02-25 00:29:08 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-02-25 00:29:08 +0100 |
commit | c943019ab528e8ed725c77f065d0d38fa101fce2 (patch) | |
tree | d154bc0f0a380a5d6ce8487926e39dfa731dfb54 /logic | |
parent | fc43fd110561e685714da9bd4a82d8c848c45471 (diff) | |
download | MultiMC-c943019ab528e8ed725c77f065d0d38fa101fce2.tar MultiMC-c943019ab528e8ed725c77f065d0d38fa101fce2.tar.gz MultiMC-c943019ab528e8ed725c77f065d0d38fa101fce2.tar.lz MultiMC-c943019ab528e8ed725c77f065d0d38fa101fce2.tar.xz MultiMC-c943019ab528e8ed725c77f065d0d38fa101fce2.zip |
NOISSUE fix a benign leak in FTB implementation
Diffstat (limited to 'logic')
-rw-r--r-- | logic/ftb/OneSixFTBInstance.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/ftb/OneSixFTBInstance.cpp b/logic/ftb/OneSixFTBInstance.cpp index 7a0fdf4d..8d61997b 100644 --- a/logic/ftb/OneSixFTBInstance.cpp +++ b/logic/ftb/OneSixFTBInstance.cpp @@ -77,8 +77,8 @@ void OneSixFTBInstance::copy(const QDir &newDir) qDebug() << "Copying FTB libraries"; for (auto library : libraryNames) { - OneSixLibrary *lib = new OneSixLibrary(library); - const QString out = QDir::current().absoluteFilePath("libraries/" + lib->storageSuffix()); + OneSixLibrary lib(library); + const QString out = QDir::current().absoluteFilePath("libraries/" + lib.storageSuffix()); if (QFile::exists(out)) { continue; |