Bug 1024223 - Fix leak of |dest| and |src| in BasicLayerManager.cpp PixmanTransform(). r=mattwoodrow

This commit is contained in:
Walter Litwinczyk 2014-07-09 13:48:59 -07:00
parent e330e282ae
commit 797e9f95b4

View File

@ -656,6 +656,8 @@ PixmanTransform(const gfxImageSurface* aDest,
// If the transform is singular then nothing would be drawn anyway, return here
if (!pixman_transform_invert(&pixTransformInverted, &pixTransform)) {
pixman_image_unref(dest);
pixman_image_unref(src);
return;
}
pixman_image_set_transform(src, &pixTransformInverted);