Fixed various memory leaks as reported by AddressSanitizer
This commit is contained in:
@@ -276,6 +276,20 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
~Implementation()
|
||||
{
|
||||
for (auto &p : wProfiles) {
|
||||
if (p.second) {
|
||||
cmsCloseProfile(p.second);
|
||||
}
|
||||
}
|
||||
for (auto &p : wProfilesGamma) {
|
||||
if (p.second) {
|
||||
cmsCloseProfile(p.second);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void init(const Glib::ustring& usrICCDir, const Glib::ustring& rtICCDir, bool loadAll)
|
||||
{
|
||||
// Reads all profiles from the given profiles dir
|
||||
|
||||
Reference in New Issue
Block a user