[gs-cvs] rev 7047 - trunk/gs/src

alexcher at ghostscript.com alexcher at ghostscript.com
Thu Sep 14 10:19:42 PDT 2006


Author: alexcher
Date: 2006-09-14 10:19:41 -0700 (Thu, 14 Sep 2006)
New Revision: 7047

Modified:
   trunk/gs/src/gsimage.c
Log:
Pacify Valgrind. Initialize penum->planes[i].source.data in gsimage.c
These pointers are enumerated during garbage collection.
Bug 688886.


Modified: trunk/gs/src/gsimage.c
===================================================================
--- trunk/gs/src/gsimage.c	2006-09-14 12:15:43 UTC (rev 7046)
+++ trunk/gs/src/gsimage.c	2006-09-14 17:19:41 UTC (rev 7047)
@@ -312,7 +312,8 @@
     for (i = 0; i < pie->num_planes; ++i) {
 	penum->planes[i].pos = 0;
 	penum->planes[i].source.size = 0;	/* for gs_image_next_planes */
-	penum->planes[i].row.data = 0; /* for GC */
+	penum->planes[i].source.data = 0; /* for GC */
+        penum->planes[i].row.data = 0; /* for GC */
 	penum->planes[i].row.size = 0; /* ditto */
 	penum->image_planes[i].data_x = 0; /* just init once, never changes */
     }



More information about the gs-cvs mailing list