summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-07-30 10:56:52 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-08-01 13:51:15 +0200
commitb80b2282401f6dc6b157daf9733457711dafaf82 (patch)
treebb83eda4868d38f2078de35b7cfec56a00802d98 /src/gui
parentd914a5ba4e2f0c208473d5e76adb7d16e2e8e706 (diff)
Fix QColorTransform memory leak
Introduced recently when the smart-pointer was made manual. Change-Id: I29a041631e94a8e131dd29dae32975d68b386e00 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qcolorspace.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/painting/qcolorspace.cpp b/src/gui/painting/qcolorspace.cpp
index 4a1ed373f5..926f2f687a 100644
--- a/src/gui/painting/qcolorspace.cpp
+++ b/src/gui/painting/qcolorspace.cpp
@@ -364,6 +364,7 @@ QColorTransform QColorSpacePrivate::transformationToColorSpace(const QColorSpace
QColorTransform combined;
auto ptr = new QColorTransformPrivate;
combined.d = ptr;
+ combined.d->ref.ref();
ptr->colorSpaceIn = this;
ptr->colorSpaceOut = out;
ptr->colorMatrix = out->toXyz.inverted() * toXyz;