Fixed various memory leaks as reported by AddressSanitizer

This commit is contained in:
Alberto Griggio
2017-06-07 10:36:28 +02:00
parent b3956a3fda
commit 2edd677d1a
10 changed files with 78 additions and 50 deletions

View File

@@ -1701,6 +1701,15 @@ DCPStore* DCPStore::getInstance()
return &instance;
}
DCPStore::~DCPStore()
{
for (auto &p : profile_cache) {
delete p.second;
}
}
void DCPStore::init(const Glib::ustring& rt_profile_dir, bool loadAll)
{
MyMutex::MyLock lock(mutex);