NOISSUE fix a benign leak in FTB implementation

This commit is contained in:
Petr Mrázek 2016-02-25 00:29:08 +01:00
parent fc43fd1105
commit c943019ab5

View File

@ -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;