From 171b053347c83d2a1f234b553510ef3f72f22f29 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 14 Jul 2005 11:41:00 +0000 Subject: [PATCH] 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). --- pixman/ChangeLog | 8 ++++++++ pixman/src/icimage.c | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pixman/ChangeLog b/pixman/ChangeLog index fe4e616e5..0642e9590 100644 --- a/pixman/ChangeLog +++ b/pixman/ChangeLog @@ -1,3 +1,11 @@ +2005-07-14 Carl Worth + + * 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 * src/ic.c: (fbIn24), (fbCompositeTrans_0565xnx0565), diff --git a/pixman/src/icimage.c b/pixman/src/icimage.c index 1399def65..86db4416b 100644 --- a/pixman/src/icimage.c +++ b/pixman/src/icimage.c @@ -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;