mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
Bug 1024223 - Fix leak of |dest| and |src| in BasicLayerManager.cpp PixmanTransform(). r=mattwoodrow
This commit is contained in:
parent
8ae0715458
commit
448ee9af19
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user