diff --git a/rtengine/procparams.cc b/rtengine/procparams.cc index b0622c093..9ce255a95 100644 --- a/rtengine/procparams.cc +++ b/rtengine/procparams.cc @@ -8473,25 +8473,20 @@ PartialProfile::PartialProfile(bool createInstance, bool paramsEditedValue) pparams = nullptr; pedited = nullptr; } - ownsPparams = ownsPedited = true; } PartialProfile::PartialProfile(ProcParams* pp, ParamsEdited* pe, bool fullCopy) { if (fullCopy && pp) { pparams = new ProcParams(*pp); - ownsPparams = true; } else { pparams = pp; - ownsPparams = false; } if (fullCopy && pe) { pedited = new ParamsEdited(*pe); - ownsPedited = true; } else { pedited = pe; - ownsPedited = false; } } @@ -8508,15 +8503,6 @@ PartialProfile::PartialProfile(const ProcParams* pp, const ParamsEdited* pe) } else { pedited = nullptr; } - ownsPparams = ownsPedited = true; -} - -PartialProfile::~PartialProfile() -{ - if(ownsPparams) - delete pparams; - if(ownsPedited) - delete pedited; } int PartialProfile::load (const Glib::ustring &fName) diff --git a/rtengine/procparams.h b/rtengine/procparams.h index 817a4e011..973986d85 100644 --- a/rtengine/procparams.h +++ b/rtengine/procparams.h @@ -1435,15 +1435,11 @@ public: PartialProfile (bool createInstance = false, bool paramsEditedValue = false); PartialProfile (ProcParams* pp, ParamsEdited* pe = nullptr, bool fullCopy = false); PartialProfile (const ProcParams* pp, const ParamsEdited* pe = nullptr); - ~PartialProfile (); void deleteInstance (); void clearGeneral (); int load (const Glib::ustring &fName); void set (bool v); const void applyTo (ProcParams *destParams) const ; -private: - bool ownsPparams; - bool ownsPedited; }; /**