mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 05:38:02 +02:00
Whitespace fix. (pixman_image_destroy): Fix leak of the clip region associated with an image. (NOTE: xserver/render doesn't have the same bug since it has FreePicture that calls into both DestroyPicture and DestroyPictureClip separately).
This commit is contained in:
parent
513e9e6fe5
commit
171b053347
2 changed files with 11 additions and 1 deletions
|
|
@ -1,3 +1,11 @@
|
|||
2005-07-14 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* src/icimage.c: (pixman_image_set_component_alpha): Whitespace fix.
|
||||
(pixman_image_destroy): Fix leak of the clip region associated
|
||||
with an image. (NOTE: xserver/render doesn't have the same bug
|
||||
since it has FreePicture that calls into both DestroyPicture and
|
||||
DestroyPictureClip separately).
|
||||
|
||||
2005-07-09 Jeff Muizelaar <jeff@infidigm.net>
|
||||
|
||||
* src/ic.c: (fbIn24), (fbCompositeTrans_0565xnx0565),
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ pixman_image_init (pixman_image_t *image)
|
|||
|
||||
void
|
||||
pixman_image_set_component_alpha (pixman_image_t *image,
|
||||
int component_alpha)
|
||||
int component_alpha)
|
||||
{
|
||||
if (image)
|
||||
image->componentAlpha = component_alpha;
|
||||
|
|
@ -254,6 +254,8 @@ pixman_image_get_data (pixman_image_t *image)
|
|||
void
|
||||
pixman_image_destroy (pixman_image_t *image)
|
||||
{
|
||||
pixman_image_destroyClip (image);
|
||||
|
||||
if (image->freeCompClip) {
|
||||
pixman_region_destroy (image->pCompositeClip);
|
||||
image->pCompositeClip = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue