mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1024223 - Fix leak of |dest| and |src| in BasicLayerManager.cpp PixmanTransform(). r=mattwoodrow
This commit is contained in:
parent
e330e282ae
commit
797e9f95b4
@ -656,6 +656,8 @@ PixmanTransform(const gfxImageSurface* aDest,
|
|||||||
|
|
||||||
// If the transform is singular then nothing would be drawn anyway, return here
|
// If the transform is singular then nothing would be drawn anyway, return here
|
||||||
if (!pixman_transform_invert(&pixTransformInverted, &pixTransform)) {
|
if (!pixman_transform_invert(&pixTransformInverted, &pixTransform)) {
|
||||||
|
pixman_image_unref(dest);
|
||||||
|
pixman_image_unref(src);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pixman_image_set_transform(src, &pixTransformInverted);
|
pixman_image_set_transform(src, &pixTransformInverted);
|
||||||
|
Loading…
Reference in New Issue
Block a user