[cairo-commit] libpixman/src icimage.c,1.30,1.31
Carl Worth
commit at pdx.freedesktop.org
Thu Jul 14 11:41:03 PDT 2005
Committed by: cworth
Update of /cvs/cairo/libpixman/src
In directory gabe:/tmp/cvs-serv10712/src
Modified Files:
icimage.c
Log Message:
* 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).
Index: icimage.c
===================================================================
RCS file: /cvs/cairo/libpixman/src/icimage.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- icimage.c 25 Jun 2005 03:13:19 -0000 1.30
+++ icimage.c 14 Jul 2005 18:41:01 -0000 1.31
@@ -157,7 +157,7 @@
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 @@
void
pixman_image_destroy (pixman_image_t *image)
{
+ pixman_image_destroyClip (image);
+
if (image->freeCompClip) {
pixman_region_destroy (image->pCompositeClip);
image->pCompositeClip = NULL;
More information about the cairo-commit
mailing list