should not leak anymore

This commit is contained in:
Martchus 2016-03-01 22:04:24 +01:00
parent d49d205d76
commit eccd2e3e41
3 changed files with 3 additions and 2 deletions

View File

@ -527,7 +527,7 @@ void Manager::initAlpmDataBases()
cerr << endl << shchar << "Unable to initialize ALPM database [" << loader->database()->name().toLocal8Bit().data() << "]" << endl;
// TODO: print the cause of the problem
}
//delete loader; the repo has ownership
// delete loader; the repo has ownership
}
}
if(m_config.isVerbose() || m_config.runServer()) {

View File

@ -1023,7 +1023,7 @@ Package *Repository::addPackageFromDescription(QString name, const QList<QByteAr
pkgRawPtr->putDescription(name, fields, origin);
{
QWriteLocker locker(&m_lock);
//m_packages[name] = move(pkg);
m_packages[name] = move(pkg);
}
return pkgRawPtr;
}

View File

@ -58,6 +58,7 @@ int main(int argc, char *argv[])
}
manager.addDatabasesFromRepoIndexConfig();
manager.initAlpmDataBases();
return application.exec();
cerr << shchar << "Restoring cache ... ";
manager.restoreCache();
cerr << shchar << "DONE" << endl;