From 5e22addc5425baf77aa9917610f0f27dcb2afcf6 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Wed, 7 Jun 2017 20:39:44 +0200 Subject: [PATCH] Fix memory leak in iccstore --- rtengine/iccstore.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtengine/iccstore.cc b/rtengine/iccstore.cc index 9dbeba00e..58c05665f 100644 --- a/rtengine/iccstore.cc +++ b/rtengine/iccstore.cc @@ -288,6 +288,11 @@ public: cmsCloseProfile(p.second); } } + for (auto &p : fileProfiles) { + if(p.second) { + cmsCloseProfile(p.second); + } + } } void init(const Glib::ustring& usrICCDir, const Glib::ustring& rtICCDir, bool loadAll)