Fix QColorTransform memory leak
Introduced recently when the smart-pointer was made manual. Change-Id: I29a041631e94a8e131dd29dae32975d68b386e00 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
d914a5ba4e
commit
b80b228240
@ -364,6 +364,7 @@ QColorTransform QColorSpacePrivate::transformationToColorSpace(const QColorSpace
|
|||||||
QColorTransform combined;
|
QColorTransform combined;
|
||||||
auto ptr = new QColorTransformPrivate;
|
auto ptr = new QColorTransformPrivate;
|
||||||
combined.d = ptr;
|
combined.d = ptr;
|
||||||
|
combined.d->ref.ref();
|
||||||
ptr->colorSpaceIn = this;
|
ptr->colorSpaceIn = this;
|
||||||
ptr->colorSpaceOut = out;
|
ptr->colorSpaceOut = out;
|
||||||
ptr->colorMatrix = out->toXyz.inverted() * toXyz;
|
ptr->colorMatrix = out->toXyz.inverted() * toXyz;
|
||||||
|
Loading…
Reference in New Issue
Block a user