[cairo-commit] libic/src icimage.c,1.13,1.14 icimage.h,1.14,1.15

Carl Worth commit at pdx.freedesktop.org
Wed Oct 29 10:54:28 PST 2003


Committed by: cworth

Update of /cvs/cairo/libic/src
In directory pdx:/tmp/cvs-serv27224/src

Modified Files:
	icimage.c icimage.h 
Log Message:
Fix memory leak of image->transform.
Remove currently unused DevUnion type and IcImageChange function.

Index: icimage.c
===================================================================
RCS file: /cvs/cairo/libic/src/icimage.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** icimage.c	29 Oct 2003 18:45:02 -0000	1.13
--- icimage.c	29 Oct 2003 18:54:26 -0000	1.14
***************
*** 229,232 ****
--- 229,235 ----
  	IcPixelsDestroy (image->pixels);
  
+     if (image->transform)
+ 	free (image->transform);
+ 
      free (image);
  }

Index: icimage.h
===================================================================
RCS file: /cvs/cairo/libic/src/icimage.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** icimage.h	29 Oct 2003 18:45:02 -0000	1.14
--- icimage.h	29 Oct 2003 18:54:26 -0000	1.15
***************
*** 27,44 ****
  #define _ICIMAGE_H_
  
- 
- 
- 
- typedef union _DevUnion {
-     void 		*ptr;
-     long		val;
-     unsigned long	uval;
-     void		*(*fptr)(
- #if NeedFunctionPrototypes
-                         void
- #endif
-                         );
- } DevUnion;
- 
  /* #include "glyphstr.h" */
  /* #include "scrnintstr.h" */
--- 27,30 ----
***************
*** 175,185 ****
  IcImageInit (IcImage *image);
  
- extern int __internal_linkage
- IcImageChange (IcImage		*image,
- 	       Mask		vmask,
- 	       unsigned int	*vlist,
- 	       DevUnion		*ulist,
- 	       int		*error_value);
- 
  extern void __internal_linkage
  IcImageDestroyClip (IcImage *image);
--- 161,164 ----





More information about the cairo-commit mailing list