Commit 598d34e2 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix resource leak

CID:248434
parent 8c1b6ec1
......@@ -351,26 +351,24 @@ void KisCIETongueWidget::outlineTongue()
int lx=0, ly=0;
int fx=0, fy=0;
for (int x = 380; x <= 700; x += 5)
{
for (int x = 380; x <= 700; x += 5) {
int ix = (x - 380) / 5;
QPointF * p = new QPointF(spectral_chromaticity[ix][0], spectral_chromaticity[ix][1]);
QPointF p(spectral_chromaticity[ix][0], spectral_chromaticity[ix][1]);
int icx, icy;
mapPoint(icx, icy, * p);
mapPoint(icx, icy, p);
if (x > 380)
{
if (x > 380) {
biasedLine(lx, ly, icx, icy);
}
else
{
else {
fx = icx;
fy = icy;
}
lx = icx;
ly = icy;
}
biasedLine(lx, ly, fx, fy);
......
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