Commit 9c6d0f17 authored by Halla Rempt's avatar Halla Rempt

Fix memory leak

parent 028a0a57
......@@ -111,7 +111,7 @@ struct KisPressureHSVOption::Private
KisPressureHSVOption::KisPressureHSVOption(const QString& parameterName)
: KisCurveOption(parameterName, KisPaintOpOption::COLOR, false)
, d(new Private)
, d(new Private())
{
d->parameterName = parameterName;
d->paramId = -1;
......@@ -119,6 +119,11 @@ KisPressureHSVOption::KisPressureHSVOption(const QString& parameterName)
d->max = 1;
}
KisPressureHSVOption::~KisPressureHSVOption()
{
delete d;
}
void KisPressureHSVOption::apply(KoColorTransformation* transfo, const KisPaintInformation& info) const
{
......
......@@ -48,6 +48,7 @@ public:
public:
KisPressureHSVOption(const QString& parameterName);
~KisPressureHSVOption();
void apply(KoColorTransformation* hsvTransfo, const KisPaintInformation& info) const;
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment