Index: trunk/psModules/src/objects/pmSourceContour.c
===================================================================
--- trunk/psModules/src/objects/pmSourceContour.c	(revision 8815)
+++ trunk/psModules/src/objects/pmSourceContour.c	(revision 9730)
@@ -6,6 +6,6 @@
  *  @author EAM, IfA: significant modifications.
  *
- *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-09-15 09:49:01 $
+ *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-10-24 22:55:05 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -240,6 +240,6 @@
 
     // Allocate data for x/y pairs.
-    psVector *xVec = psVectorAlloc(100, PS_TYPE_F32);
-    psVector *yVec = psVectorAlloc(100, PS_TYPE_F32);
+    psVector *xVec = psVectorAllocEmpty(100, PS_TYPE_F32);
+    psVector *yVec = psVectorAllocEmpty(100, PS_TYPE_F32);
 
     // First row: find the left and right end-points
@@ -327,5 +327,4 @@
     // fprintf (stderr, "done\n");
     psArray *tmpArray = psArrayAlloc(2);
-    tmpArray->n = 2;
 
     tmpArray->data[0] = (psPtr *) xVec;
@@ -338,5 +337,5 @@
     pmSourceContour(src, img, level, mode): For an input subImage, and model, this
     routine returns a psArray of coordinates that evaluate to the specified level.
-     
+ 
     XXX: Probably should remove the "image" argument.
     XXX: What type should the output coordinate vectors consist of?  col,row?
@@ -366,5 +365,4 @@
     psVector *xVec = psVectorAlloc(2 * source->pixels->numRows, PS_TYPE_F32);
     psVector *yVec = psVectorAlloc(2 * source->pixels->numRows, PS_TYPE_F32);
-    xVec->n = yVec->n = 2 * source->pixels->numRows;
 
     //
@@ -447,5 +445,4 @@
     //
     psArray *tmpArray = psArrayAlloc(2);
-    tmpArray->n = 2;
 
     tmpArray->data[0] = (psPtr *) yVec;
